Use @balena/es-version to set the desired es version for modules

Change-type: minor
This commit is contained in:
Pagan Gazzard 2020-06-01 13:29:28 +01:00 committed by Balena CI
parent 812b11db5f
commit 488d9b901c
4 changed files with 10 additions and 2 deletions

View File

@ -11,6 +11,10 @@ process.env.OCLIF_TS_NODE = 0;
require('fast-boot2').start({
cacheScope: __dirname + '/..',
cacheFile: __dirname + '/.fast-boot.json'
})
});
// Set the desired es version for downstream modules that support it
require('@balena/es-version').set('es2018');
// Run the CLI
require('../build/app').run();

View File

@ -15,6 +15,9 @@ require('fast-boot2').start({
cacheFile: '.fast-boot.json',
});
// Set the desired es version for downstream modules that support it
require('@balena/es-version').set('es2018');
const path = require('path');
const rootDir = path.join(__dirname, '..');
// Note: before ts-node v6.0.0, 'transpile-only' (no type checking) was the

View File

@ -175,6 +175,7 @@
},
"dependencies": {
"@balena/dockerignore": "^1.0.2",
"@balena/es-version": "^1.0.0",
"@oclif/command": "^1.5.19",
"@resin.io/valid-email": "^0.1.0",
"@sentry/node": "^5.13.2",

View File

@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": true,
"module": "commonjs",
"target": "es2017",
"target": "es2018",
"outDir": "build",
"strict": true,
"strictPropertyInitialization": false,