Merge pull request #1894 from balena-io/balena-es-version

Use @balena/es-version to set the desired es version for modules
This commit is contained in:
bulldozer-balena[bot] 2020-06-29 21:54:11 +00:00 committed by GitHub
commit a76d49243c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,