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 11const { execSync } = require ( 'child_process' ) ;
22
3+ const TYPESCRIPT_VERSION = '5.6.2' ;
4+ const TYPESCRIPT_ESLINT_VERSION = '7.1.1' ;
5+
36function isYarnAvailable ( ) {
47 try {
58 return ! ! (
@@ -46,7 +49,7 @@ module.exports = {
4649 console . log ( '\n' ) ;
4750
4851 console . log ( '📦 Loading the build tool...' ) ;
49- execSync ( `${ packageManager } add -D typescript` ) ;
52+ execSync ( `${ packageManager } add -D typescript@ ${ TYPESCRIPT_VERSION } ` ) ;
5053
5154 console . log ( '🧱 Building the javascript source...' ) ;
5255 execSync (
@@ -74,6 +77,11 @@ module.exports = {
7477 execSync ( 'rm -f src/navigations/types.js' , { stdio : 'pipe' } ) ;
7578 }
7679
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+
7785 resolve ( ) ;
7886 } ) ;
7987 } ,
You can’t perform that action at this time.
0 commit comments