Skip to content

Commit 5ff1a4f

Browse files
committed
chore: update scripts
1 parent b5f8e63 commit 5ff1a4f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,14 @@
6363
"lint": "eslint src test package.json",
6464
"test": "vitest",
6565
"test:cover": "vitest --coverage",
66-
"update-fixtures": "ts-node --transpile-only scripts/update-fixtures-ast.js && ts-node --transpile-only scripts/update-fixtures-document-fragment.js",
66+
"update-fixtures": "npm run ts -- scripts/update-fixtures-ast.js && npm run ts -- scripts/update-fixtures-document-fragment.js",
6767
"preversion": "npm test",
6868
"version": "npm run -s build",
6969
"postversion": "git push && git push --tags",
7070
"watch": "run-p watch:*",
7171
"watch:tsdown": "tsdown --watch",
72-
"watch:update-ast": "wait-on dist/index.js && warun dist/index.js \"test/fixtures/ast/*/*.vue\" -- ts-node scripts/update-fixtures-ast.js"
72+
"watch:update-ast": "wait-on dist/index.js && warun dist/index.js \"test/fixtures/ast/*/*.vue\" -- npm run ts -- scripts/update-fixtures-ast.js",
73+
"ts": "ts-node --transpile-only --compilerOptions '{\"module\":\"nodenext\",\"moduleResolution\":\"nodenext\"}'"
7374
},
7475
"repository": {
7576
"type": "git",

0 commit comments

Comments
 (0)