From 809808d23aae24b6805977bcfa7f6424c4467e20 Mon Sep 17 00:00:00 2001 From: VitoAlbano Date: Wed, 7 Aug 2024 11:29:10 +0100 Subject: [PATCH] [MIGRATION] - Are we able to run a test? let's see --- lib/testing/package.json | 1 + package-lock.json | 10 ++++++++++ package.json | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/testing/package.json b/lib/testing/package.json index 824ef09ec7..33c043ff78 100644 --- a/lib/testing/package.json +++ b/lib/testing/package.json @@ -3,6 +3,7 @@ "description": "Alfresco ADF testing page and utils", "version": "6.9.0", "author": "Hyland Software, Inc. and its affiliates", + "type": "commonjs", "repository": { "type": "git", "url": "https://github.com/Alfresco/alfresco-ng2-components.git" diff --git a/package-lock.json b/package-lock.json index b6142d1326..22e69464bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -115,6 +115,7 @@ "eslint-plugin-rxjs": "^5.0.3", "eslint-plugin-storybook": "^0.8.0", "eslint-plugin-unicorn": "^49.0.0", + "esm": "^3.2.25", "graphql": "^16.8.1", "husky": "^7.0.4", "jasmine-ajax": "4.0.0", @@ -19907,6 +19908,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/esm": { + "version": "3.2.25", + "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", + "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/esniff": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", diff --git a/package.json b/package.json index eae3189147..ff4cb5d787 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "e2e": "./scripts/test-e2e-lib.sh -host 'localhost:4200' -dev --folder demo-shell", "e2e-lib": "nx e2e lib-e2e-test --port=4200", "lite-server-e2e": "lite-server --baseDir='dist/demo-shell/' -c ./e2e/lite-server-proxy.js", - "postbuild:ci": "node ./scripts/app-config-replace.js", + "postbuild:ci": "node -r esm ./scripts/app-config-replace.js", "06": "echo -------------------------------------------- Clean ----------------------------------------------", "clean": "rimraf dist node_modules dist/libs", "playwright": "npx playwright test --config='e2e-playwright/playwright.config.ts'", @@ -156,6 +156,7 @@ "eslint-plugin-rxjs": "^5.0.3", "eslint-plugin-storybook": "^0.8.0", "eslint-plugin-unicorn": "^49.0.0", + "esm": "^3.2.25", "graphql": "^16.8.1", "husky": "^7.0.4", "jasmine-ajax": "4.0.0",