File tree Expand file tree Collapse file tree 5 files changed +26
-47
lines changed Expand file tree Collapse file tree 5 files changed +26
-47
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ node_modules
8
8
/test.js
9
9
/test /fixtures /espree-v8 /node_modules
10
10
/test /fixtures /integrations /** /_actual.json
11
+ /dist
Original file line number Diff line number Diff line change 2
2
"name" : " vue-eslint-parser" ,
3
3
"version" : " 10.1.4" ,
4
4
"description" : " The ESLint custom parser for `.vue` files." ,
5
- "main" : " index.js" ,
5
+ "main" : " dist/ index.js" ,
6
6
"files" : [
7
- " index.* "
7
+ " dist "
8
8
],
9
9
"engines" : {
10
10
"node" : " ^18.18.0 || ^20.9.0 || >=21.1.0"
39
39
"@typescript-eslint/parser" : " ^8.22.0" ,
40
40
"chokidar" : " ^3.5.2" ,
41
41
"cross-spawn" : " ^7.0.3" ,
42
- "dts-bundle" : " ^0.7.3" ,
43
42
"eslint" : " ^9.19.0" ,
44
43
"eslint-plugin-eslint-comments" : " ^3.2.0" ,
45
44
"eslint-plugin-jsonc" : " ^2.19.1" ,
55
54
"opener" : " ^1.5.2" ,
56
55
"prettier" : " ^3.4.2" ,
57
56
"rimraf" : " ^3.0.2" ,
58
- "rollup" : " ^2.60.0" ,
59
- "rollup-plugin-node-resolve" : " ^5.2.0" ,
60
- "rollup-plugin-replace" : " ^2.2.0" ,
61
- "rollup-plugin-sourcemaps" : " ^0.6.3" ,
62
57
"ts-node" : " ^10.9.2" ,
58
+ "tsdown" : " ^0.12.8" ,
63
59
"typescript" : " ~5.7.3" ,
64
60
"wait-on" : " ^6.0.0" ,
65
61
"warun" : " ^1.0.0"
66
62
},
67
63
"scripts" : {
68
64
"prebuild" : " npm run -s clean" ,
69
- "build" : " tsc --module es2015 && rollup -c -o index.js && dts-bundle --name vue-eslint-parser --main .temp/index.d.ts --out ../index.d.ts " ,
65
+ "build" : " tsdown " ,
70
66
"clean" : " rimraf .nyc_output .temp coverage index.*" ,
71
67
"coverage" : " opener ./coverage/lcov-report/index.html" ,
72
68
"lint" : " eslint src test package.json" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
- "compileOnSave" : true ,
3
2
"compilerOptions" : {
4
3
"allowJs" : false ,
5
4
"allowSyntheticDefaultImports" : true ,
8
7
"alwaysStrict" : true ,
9
8
"baseUrl" : " ." ,
10
9
"checkJs" : false ,
11
- "declaration" : true ,
12
10
"esModuleInterop" : true ,
13
11
"forceConsistentCasingInFileNames" : true ,
14
12
"inlineSources" : true ,
23
21
"noImplicitThis" : true ,
24
22
"noUnusedLocals" : true ,
25
23
"noUnusedParameters" : true ,
26
- "outDir" : " .temp" ,
27
24
"paths" : {
28
25
"*" : [" typings/*" ]
29
26
},
30
27
"pretty" : true ,
28
+ "resolveJsonModule" : true ,
31
29
"removeComments" : true ,
32
30
"sourceMap" : true ,
33
31
"sourceRoot" : " src" ,
37
35
38
36
"skipLibCheck" : true
39
37
},
40
- "include" : [" src/**/*.ts" ]
38
+ "include" : [" src/**/*.ts" , " tsdown.config.ts " ]
41
39
}
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from "tsdown"
2
+ import pkg from "./package.json"
3
+
4
+ export default defineConfig ( {
5
+ entry : "./src/index.ts" ,
6
+ target : "es2015" ,
7
+ sourcemap : true ,
8
+ env : {
9
+ PACKAGE_VERSION : pkg . version ,
10
+ } ,
11
+ outputOptions : {
12
+ banner : `/**
13
+ * @author Toru Nagashima <https://github.com/mysticatea>
14
+ * See LICENSE file in root directory for full license.
15
+ */` ,
16
+ } ,
17
+ dts : true ,
18
+ format : "cjs" ,
19
+ } )
You can’t perform that action at this time.
0 commit comments