Skip to content

Commit

Permalink
fix fs-extra build
Browse files Browse the repository at this point in the history
  • Loading branch information
niclim committed Apr 3, 2023
1 parent 2ce2a0f commit fbdfcae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
1 change: 0 additions & 1 deletion projects/openapi-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"@types/lodash.sortby": "^4.7.6",
"@types/node": "^18.0.0",
"babel-jest": "^29.3.1",
"fs-extra": "^11.0.0",
"jest": "^29.3.1",
"prettier": "^2.8.1",
"ts-jest": "^29.0.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { it, expect, describe } from '@jest/globals';
import { OpenAPITraverser } from '../openapi-traverser';
import fs from 'fs-extra';
import fs from 'node:fs/promises';

const jsonFromFile = async (path: string) => {
const bytes = await fs.readJson(path);
return bytes;
const jsonFromFile = async (p: string) => {
const contents = await fs.readFile(p, 'utf-8');
return JSON.parse(contents);
};

it('can extract facts from specs', async () => {
Expand Down
13 changes: 6 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3829,7 +3829,7 @@ __metadata:
commander: ^10.0.0
conf: ^10.2.0
fast-deep-equal: ^3.1.3
fs-extra: ^11.0.0
fs-extra: ^11.1.0
har-schema: ^2.0.0
is-elevated: ^3.0.0
is-url: ^1.2.4
Expand Down Expand Up @@ -3945,7 +3945,6 @@ __metadata:
babel-jest: ^29.3.1
chalk: ^4.1.2
fast-deep-equal: ^3.1.3
fs-extra: ^11.0.0
is-url: ^1.2.4
jest: ^29.3.1
js-yaml: ^4.1.0
Expand Down Expand Up @@ -4069,7 +4068,7 @@ __metadata:
conf: ^10.2.0
dotenv: ^16.0.3
fast-deep-equal: ^3.1.3
fs-extra: ^11.0.0
fs-extra: ^11.1.0
git-url-parse: ^13.1.0
har-schema: ^2.0.0
is-elevated: ^3.0.0
Expand Down Expand Up @@ -6633,14 +6632,14 @@ __metadata:
languageName: node
linkType: hard

"fs-extra@npm:^11.0.0":
version: 11.1.0
resolution: "fs-extra@npm:11.1.0"
"fs-extra@npm:^11.1.0":
version: 11.1.1
resolution: "fs-extra@npm:11.1.1"
dependencies:
graceful-fs: ^4.2.0
jsonfile: ^6.0.1
universalify: ^2.0.0
checksum: 5ca476103fa1f5ff4a9b3c4f331548f8a3c1881edaae323a4415d3153b5dc11dc6a981c8d1dd93eec8367ceee27b53f8bd27eecbbf66ffcdd04927510c171e7f
checksum: fb883c68245b2d777fbc1f2082c9efb084eaa2bbf9fddaa366130d196c03608eebef7fb490541276429ee1ca99f317e2d73e96f5ca0999eefedf5a624ae1edfd
languageName: node
linkType: hard

Expand Down

0 comments on commit fbdfcae

Please sign in to comment.