diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6afb47e..7ddc5c8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -77,7 +77,7 @@ test: - chmod 755 ./dist/cli.js - node -v - npm --version - - export NODE_OPTIONS="--experimental-specifier-resolution=node --experimental-vm-modules" + - export NODE_OPTIONS="--import=extensionless/register --experimental-vm-modules" - npm run test:ci pages: diff --git a/package-lock.json b/package-lock.json index c1570c2..e61e465 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "commander": "^11.1.0", "consola": "^3.2.3", "dotenv": "^16.3.1", + "extensionless": "^1.9.6", "fast-csv": "^4.3.6", "kleur": "^4.1.5", "lodash.get": "^4.4.2", @@ -3395,6 +3396,11 @@ "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.1.tgz", "integrity": "sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==" }, + "node_modules/extensionless": { + "version": "1.9.6", + "resolved": "https://registry.npmjs.org/extensionless/-/extensionless-1.9.6.tgz", + "integrity": "sha512-40F6zThJu1MxaT1A1pJ/2SHlU1BPYYnQNHt0j2ZlPuxxm2ddMcNc1D7uS/LGc4K3VwMEMaZLkCdHWaKk0LnQXA==" + }, "node_modules/external-editor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", diff --git a/package.json b/package.json index 52b5dc2..b266a48 100644 --- a/package.json +++ b/package.json @@ -21,13 +21,13 @@ ], "scripts": { "build": "npx tsc", - "atat": "node --experimental-specifier-resolution=node --no-warnings ./dist/cli.js", + "atat": "node --no-warnings ./dist/cli.js", "prepublishOnly": "npm run build", "release": "echo 'MAKE SURE YOU RUN ./deploy_master.sh first! and DO NOT PUBLISH FROM HERE!' && npx release-it", "release-beta": "echo 'MAKE SURE to TAG your beta for github actions to deploy npm package!!' && npx release-it --preRelease=beta --config .release-it.beta-nopublish.json", "prepare": "husky install", - "test": "rm -Rf ./user_data && node --experimental-specifier-resolution=node --experimental-vm-modules --trace-warnings node_modules/.bin/vitest run", - "test:ci": "rm -Rf ./user_data && node --experimental-specifier-resolution=node --experimental-vm-modules --trace-warnings node_modules/.bin/vitest run --coverage.enabled", + "test": "rm -Rf ./user_data && node --experimental-vm-modules --trace-warnings node_modules/.bin/vitest run", + "test:ci": "rm -Rf ./user_data && node --experimental-vm-modules --trace-warnings node_modules/.bin/vitest run --coverage.enabled", "test:watch": "node_modules/.bin/vitest --watch" }, "keywords": [ @@ -43,6 +43,7 @@ "commander": "^11.1.0", "consola": "^3.2.3", "dotenv": "^16.3.1", + "extensionless": "^1.9.6", "fast-csv": "^4.3.6", "kleur": "^4.1.5", "lodash.get": "^4.4.2",