Skip to content

Commit 388d9cf

Browse files
committed
chore: Update TypeScript and ESLint versions in compile-js plugin
1 parent 3d13d7a commit 388d9cf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

template/plugins/compile-js/plugin.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
const { execSync } = require('child_process');
22

3+
const TYPESCRIPT_VERSION = '5.6.2';
4+
const TYPESCRIPT_ESLINT_VERSION = '7.1.1';
5+
36
function 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
},

0 commit comments

Comments
 (0)