Set desired es-version for downstream modules that support it

Change-type: patch
This commit is contained in:
Thodoris Greasidis 2022-09-07 17:07:16 +03:00
parent 42dd4f75ac
commit fadd514463
3 changed files with 8 additions and 3 deletions

6
package-lock.json generated
View File

@ -520,9 +520,9 @@
"dev": true "dev": true
}, },
"@balena/es-version": { "@balena/es-version": {
"version": "1.0.0", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/@balena/es-version/-/es-version-1.0.0.tgz", "resolved": "https://registry.npmjs.org/@balena/es-version/-/es-version-1.0.1.tgz",
"integrity": "sha512-o3/sRDyrXC75BUUziMAs+W5C02aVST0YqY5Ny31Ot3a+7CzK2XDRinMGywvK93tm2QVdL83HGkN483S62Xo9Dw==", "integrity": "sha512-3hS6695vmZcKm+UX9W+4xVSYIW56OIjq8wLybKZsNoMDLAXei9HnbhnVLsbqWhqATrRKHy19onjJQHL/AfcpFA==",
"dev": true "dev": true
}, },
"@balena/happy-eyeballs": { "@balena/happy-eyeballs": {

View File

@ -41,6 +41,7 @@
}, },
"devDependencies": { "devDependencies": {
"@balena/contrato": "^0.6.0", "@balena/contrato": "^0.6.0",
"@balena/es-version": "^1.0.1",
"@balena/lint": "^5.1.0", "@balena/lint": "^5.1.0",
"@types/bluebird": "^3.5.32", "@types/bluebird": "^3.5.32",
"@types/chai": "^4.2.16", "@types/chai": "^4.2.16",

View File

@ -1,3 +1,7 @@
import { set } from '@balena/es-version';
// Set the desired es version for downstream modules that support it, before we import any
set('es2019');
import { NOTFOUND } from 'dns'; import { NOTFOUND } from 'dns';
import * as mdnsResolver from 'mdns-resolver'; import * as mdnsResolver from 'mdns-resolver';