File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Filter options
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Original file line number Diff line number Diff line change 56
56
"rimraf" : " ^3.0.2" ,
57
57
"rollup" : " ^2.60.0" ,
58
58
"rollup-plugin-node-resolve" : " ^5.2.0" ,
59
+ "rollup-plugin-replace" : " ^2.2.0" ,
59
60
"rollup-plugin-sourcemaps" : " ^0.6.3" ,
60
61
"ts-node" : " ^10.4.0" ,
61
62
"typescript" : " ~4.8.4" ,
Original file line number Diff line number Diff line change 5
5
*/
6
6
import resolve from "rollup-plugin-node-resolve"
7
7
import sourcemaps from "rollup-plugin-sourcemaps"
8
+ import replace from "rollup-plugin-replace"
8
9
9
10
const pkg = require ( "./package.json" )
10
11
const deps = new Set (
@@ -23,6 +24,12 @@ export default {
23
24
* See LICENSE file in root directory for full license.
24
25
*/` ,
25
26
} ,
26
- plugins : [ sourcemaps ( ) , resolve ( ) ] ,
27
+ plugins : [
28
+ sourcemaps ( ) ,
29
+ resolve ( ) ,
30
+ replace ( {
31
+ "process.env.PACKAGE_VERSION" : `"${ pkg . version } "` ,
32
+ } ) ,
33
+ ] ,
27
34
external : id => deps . has ( id ) || id . startsWith ( "lodash" ) ,
28
35
}
Original file line number Diff line number Diff line change @@ -208,3 +208,9 @@ function parseAsScript(code: string, options: ParserOptions) {
208
208
} ) ,
209
209
} )
210
210
}
211
+
212
+ export const meta = {
213
+ name : "vue-eslint-parser" ,
214
+ // eslint-disable-next-line no-process-env
215
+ version : process . env . PACKAGE_VERSION ,
216
+ }
You can’t perform that action at this time.
0 commit comments