File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
template/plugins/compile-js Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
const { execSync } = require ( 'child_process' ) ;
2
2
3
+ const TYPESCRIPT_VERSION = '5.6.2' ;
4
+ const TYPESCRIPT_ESLINT_VERSION = '7.1.1' ;
5
+
3
6
function isYarnAvailable ( ) {
4
7
try {
5
8
return ! ! (
@@ -46,7 +49,7 @@ module.exports = {
46
49
console . log ( '\n' ) ;
47
50
48
51
console . log ( '📦 Loading the build tool...' ) ;
49
- execSync ( `${ packageManager } add -D typescript` ) ;
52
+ execSync ( `${ packageManager } add -D typescript@ ${ TYPESCRIPT_VERSION } ` ) ;
50
53
51
54
console . log ( '🧱 Building the javascript source...' ) ;
52
55
execSync (
@@ -74,6 +77,11 @@ module.exports = {
74
77
execSync ( 'rm -f src/navigations/types.js' , { stdio : 'pipe' } ) ;
75
78
}
76
79
80
+ // FIXME: This is a temporary solution to fix the eslint issue
81
+ execSync (
82
+ `${ packageManager } add -D @typescript-eslint/eslint-plugin@${ TYPESCRIPT_VERSION } ` ,
83
+ ) ;
84
+
77
85
resolve ( ) ;
78
86
} ) ;
79
87
} ,
You can’t perform that action at this time.
0 commit comments