Skip to content

Commit 867299e

Browse files
committed
feat: add removeJsonc options
fixes #2
1 parent 1c6aefc commit 867299e

File tree

13 files changed

+2227
-1093
lines changed

13 files changed

+2227
-1093
lines changed

package.json

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
"repository": "https://github.com/zardoy/modify-json-file",
88
"keywords": [
99
"json",
10+
"jsonc",
1011
"files",
1112
"modify",
1213
"change",
1314
"update",
1415
"replace",
15-
"fields",
16+
"properties",
1617
"package.json",
1718
"tsconfig.json"
1819
],
@@ -22,25 +23,22 @@
2223
"build"
2324
],
2425
"scripts": {
25-
"prepublishOnly": "tsc && yarn test",
26-
"test": "tsd && ava --serial"
26+
"prepublishOnly": "tsc -p tsconfig.build.json && pnpm test",
27+
"test": "tsd && jest"
2728
},
2829
"engines": {
2930
"node": ">=12"
3031
},
3132
"devDependencies": {
32-
"@ava/typescript": "^1.1.1",
3333
"@types/graceful-fs": "^4.1.5",
34-
"@types/jsonfile": "^6.0.1",
34+
"@types/jest": "^27.0.1",
3535
"@types/node": "^15.14.9",
3636
"@types/parse-json": "^4.0.0",
3737
"@zardoy/tsconfig": "^1.2.2",
38-
"ava": "^3.15.0",
39-
"del": "^6.0.0",
40-
"jsonfile": "^6.1.0",
38+
"jest": "^27.2.0",
4139
"load-json-file": "^6.2.0",
4240
"nanoid": "^3.1.25",
43-
"ts-node": "^10.2.1",
41+
"ts-jest": "^27.0.5",
4442
"tsd": "^0.17.0",
4543
"typescript": "^4.4.3"
4644
},
@@ -49,14 +47,11 @@
4947
"graceful-fs": "^4.2.8",
5048
"parse-json": "^5.2.0",
5149
"strip-bom": "^4.0.0",
52-
"type-fest": "^1.4.0"
50+
"strip-json-comments": "^3",
51+
"strip-json-trailing-commas": "^1.1.0",
52+
"type-fest": "^2.3.3"
5353
},
54-
"ava": {
55-
"extensions": [
56-
"ts"
57-
],
58-
"require": [
59-
"ts-node/register"
60-
]
54+
"jest": {
55+
"preset": "ts-jest"
6156
}
6257
}

0 commit comments

Comments
 (0)