Skip to content

Commit

Permalink
chore: Update TypeScript and ESLint versions in compile-js plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyDolle committed Oct 8, 2024
1 parent 3d13d7a commit 388d9cf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion template/plugins/compile-js/plugin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const { execSync } = require('child_process');

const TYPESCRIPT_VERSION = '5.6.2';
const TYPESCRIPT_ESLINT_VERSION = '7.1.1';

function isYarnAvailable() {
try {
return !!(
Expand Down Expand Up @@ -46,7 +49,7 @@ module.exports = {
console.log('\n');

console.log('📦 Loading the build tool...');
execSync(`${packageManager} add -D typescript`);
execSync(`${packageManager} add -D typescript@${TYPESCRIPT_VERSION}`);

console.log('🧱 Building the javascript source...');
execSync(
Expand Down Expand Up @@ -74,6 +77,11 @@ module.exports = {
execSync('rm -f src/navigations/types.js', { stdio: 'pipe' });
}

// FIXME: This is a temporary solution to fix the eslint issue
execSync(
`${packageManager} add -D @typescript-eslint/eslint-plugin@${TYPESCRIPT_VERSION}`,
);

resolve();
});
},
Expand Down

0 comments on commit 388d9cf

Please sign in to comment.