Skip to content

Commit 919b8c3

Browse files
committed
chore: update
1 parent 97e5caa commit 919b8c3

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/.nyc_output
2-
/.temp
32
/coverage
43
node_modules
54
/test/temp

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ The `npm install` command installs dependencies.
324324
### Development Tools
325325

326326
- `npm test` runs tests and measures coverage.
327-
- `npm run build` compiles TypeScript source code to `index.js`, `index.js.map`, and `index.d.ts`.
327+
- `npm run build` compiles TypeScript source code to `index.js`, `index.js.map`, and `index.d.ts` in `dist`.
328328
- `npm run coverage` shows the coverage result of `npm test` command with the default browser.
329329
- `npm run clean` removes the temporary files which are created by `npm test` and `npm run build`.
330330
- `npm run lint` runs ESLint.

eslint.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,15 @@ export default [
2323
{
2424
ignores: [
2525
".nyc_output",
26-
".temp",
2726
"coverage",
27+
"dist",
2828
"**/node_modules",
2929
"src/html/util/alternative-cr.ts",
3030
"src/html/util/attribute-names.ts",
3131
"src/html/util/entities.ts",
3232
"src/html/util/tag-names.ts",
3333
"test/fixtures",
3434
"test/temp",
35-
"index.d.ts",
36-
"index.js",
3735
],
3836
},
3937
...nodeDeps.configs["flat/recommended"],

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@
6161
"warun": "^1.0.0"
6262
},
6363
"scripts": {
64-
"prebuild": "npm run -s clean",
6564
"build": "tsdown",
66-
"clean": "rimraf .nyc_output .temp coverage",
65+
"clean": "rimraf .nyc_output coverage",
6766
"coverage": "opener ./coverage/lcov-report/index.html",
6867
"lint": "eslint src test package.json",
6968
"pretest": "run-s build lint",
@@ -77,10 +76,9 @@
7776
"postversion": "git push && git push --tags",
7877
"prewatch": "npm run -s clean",
7978
"watch": "run-p watch:*",
80-
"watch:tsc": "tsc --module es2015 --watch",
81-
"watch:rollup": "wait-on .temp/index.js && rollup -c -o index.js --watch",
82-
"watch:test": "wait-on index.js && warun index.js \"test/*.js\" \"test/fixtures/ast/*/*.json\" \"test/fixtures/*\" --debounce 1000 --no-initial -- nyc mocha \"test/*.js\" --reporter dot --timeout 10000",
83-
"watch:update-ast": "wait-on index.js && warun index.js \"test/fixtures/ast/*/*.vue\" -- node scripts/update-fixtures-ast.js",
79+
"watch:tsdown": "tsdown --watch",
80+
"watch:test": "wait-on dist/index.js && warun dist/index.js \"test/*.js\" \"test/fixtures/ast/*/*.json\" \"test/fixtures/*\" --debounce 1000 --no-initial -- nyc mocha \"test/*.js\" --reporter dot --timeout 10000",
81+
"watch:update-ast": "wait-on dist/index.js && warun dist/index.js \"test/fixtures/ast/*/*.vue\" -- node scripts/update-fixtures-ast.js",
8482
"watch:coverage-report": "wait-on coverage/lcov-report/index.html && opener coverage/lcov-report/index.html"
8583
},
8684
"repository": {

test/fixtures/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"parser": "../../index.js"
2+
"parser": "../../dist/index.js"
33
}

0 commit comments

Comments
 (0)