Skip to content

Commit 1a36845

Browse files
authored
feat: use esm version of fast-json-patch (#1364)
1 parent f6af8bf commit 1a36845

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/embed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {applyPatch, Operation} from 'fast-json-patch';
1+
import {applyPatch, Operation} from 'fast-json-patch/index.mjs';
22
import stringify from 'json-stringify-pretty-compact';
33
// need this import because of https://github.com/npm/node-semver/issues/381
44
import satisfies from 'semver/functions/satisfies';

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"allowSyntheticDefaultImports": true,
1111
"importHelpers": true,
1212
"resolveJsonModule": true,
13-
"skipLibCheck": true
13+
"skipLibCheck": true,
14+
"paths": {
15+
"fast-json-patch/index.mjs": ["./node_modules/fast-json-patch/index.d.ts"]
16+
}
1417
},
1518
"include": ["src/**/*.ts", "test/**/*.ts"]
1619
}

0 commit comments

Comments
 (0)