From 2aa7adb3bd025eaade8841e5cbd89094817021f5 Mon Sep 17 00:00:00 2001 From: Alessio Gravili Date: Thu, 7 Mar 2024 16:35:44 -0500 Subject: [PATCH] chore: get old ts-node scripts to work, replace ts-node with tsx, fix runE2E.ts --- package.json | 8 +-- pnpm-lock.yaml | 157 +++++++++++++++++++++++-------------------------- test/runE2E.ts | 4 ++ 3 files changed, 79 insertions(+), 90 deletions(-) diff --git a/package.json b/package.json index 36b33ec1e7..835dee0ece 100644 --- a/package.json +++ b/package.json @@ -40,8 +40,8 @@ "clean:build": "find . \\( -type d \\( -name dist -o -name .cache -o -name .next -o -name .turbo \\) -o -type f -name tsconfig.tsbuildinfo \\) -not -path '*/node_modules/*' -exec rm -rf {} +", "clean:all": "find . \\( -type d \\( -name node_modules -o -name dist -o -name .cache -o -name .next -o -name .turbo \\) -o -type f -name tsconfig.tsbuildinfo \\) -exec rm -rf {} +", "dev": "cross-env node --no-deprecation ./test/dev.js", - "dev:generate-graphql-schema": "NODE_OPTIONS=--no-deprecation ts-node -T ./test/generateGraphQLSchema.ts", - "dev:generate-types": "NODE_OPTIONS=--no-deprecation ts-node -T ./test/generateTypes.ts", + "dev:generate-graphql-schema": "NODE_OPTIONS=--no-deprecation tsx ./test/generateGraphQLSchema.ts", + "dev:generate-types": "NODE_OPTIONS=--no-deprecation tsx ./test/generateTypes.ts", "dev:postgres": "pnpm --filter payload run dev:postgres", "docker:restart": "pnpm docker:stop --remove-orphans && pnpm docker:start", "docker:start": "docker-compose -f packages/plugin-cloud-storage/docker-compose.yml up -d", @@ -57,7 +57,7 @@ "release:beta": "tsx ./scripts/release.ts --bump prerelease --tag beta", "test": "pnpm test:int && pnpm test:components && pnpm test:e2e", "test:components": "cross-env NODE_OPTIONS=--no-deprecation jest --config=jest.components.config.js", - "test:e2e": "NODE_OPTIONS=--no-deprecation npx playwright install --with-deps chromium && NODE_OPTIONS=--no-deprecation ts-node -T ./test/runE2E.ts", + "test:e2e": "NODE_OPTIONS=--no-deprecation npx playwright install --with-deps chromium && NODE_OPTIONS=--no-deprecation tsx ./test/runE2E.ts", "test:e2e:debug": "cross-env NODE_OPTIONS=--no-deprecation PWDEBUG=1 DISABLE_LOGGING=true playwright test", "test:e2e:headed": "cross-env NODE_OPTIONS=--no-deprecation DISABLE_LOGGING=true playwright test --headed", "test:int:postgres": "cross-env NODE_OPTIONS=--no-deprecation PAYLOAD_DATABASE=postgres DISABLE_LOGGING=true jest --forceExit --detectOpenHandles", @@ -136,7 +136,6 @@ "slash": "3.0.0", "slate": "0.91.4", "tempfile": "^3.0.0", - "ts-node": "10.9.2", "tsx": "^4.7.1", "turbo": "^1.12.5", "typescript": "5.2.2", @@ -169,7 +168,6 @@ "graphql": "^16.8.1", "react": "$react", "react-dom": "$react-dom", - "ts-node": "$ts-node", "typescript": "$typescript" }, "allowedDeprecatedVersions": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 805ff7eb22..e09de10ab9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,7 +12,6 @@ overrides: graphql: ^16.8.1 react: ^18.2.0 react-dom: ^18.2.0 - ts-node: 10.9.2 typescript: 5.2.2 importers: @@ -163,7 +162,7 @@ importers: version: 8.0.3 jest: specifier: 29.7.0 - version: 29.7.0(@types/node@20.5.7)(ts-node@10.9.2) + version: 29.7.0(@types/node@20.5.7) jest-environment-jsdom: specifier: 29.7.0 version: 29.7.0 @@ -242,9 +241,6 @@ importers: tempfile: specifier: ^3.0.0 version: 3.0.0 - ts-node: - specifier: 10.9.2 - version: 10.9.2(@swc/core@1.4.2)(@types/node@20.5.7)(typescript@5.2.2) tsx: specifier: ^4.7.1 version: 4.7.1 @@ -922,8 +918,8 @@ importers: specifier: ^18.2.0 version: 18.2.0 ts-node: - specifier: 10.9.2 - version: 10.9.2(@swc/core@1.4.2)(@types/node@16.18.85)(typescript@5.2.2) + specifier: 10.9.1 + version: 10.9.1(@swc/core@1.4.2)(@types/node@16.18.85)(typescript@5.2.2) packages/plugin-nested-docs: devDependencies: @@ -1018,7 +1014,7 @@ importers: version: 8.6.0 jest: specifier: ^29.5.0 - version: 29.7.0(@types/node@18.11.3)(ts-node@10.9.2) + version: 29.7.0(@types/node@18.11.3) nodemon: specifier: 3.0.3 version: 3.0.3 @@ -2929,6 +2925,7 @@ packages: engines: {node: '>=12'} dependencies: '@jridgewell/trace-mapping': 0.3.9 + dev: true /@discoveryjs/json-ext@0.5.7: resolution: {integrity: sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==} @@ -3686,7 +3683,7 @@ packages: jest-util: 29.7.0 slash: 3.0.0 - /@jest/core@29.7.0(ts-node@10.9.2): + /@jest/core@29.7.0: resolution: {integrity: sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -3707,7 +3704,7 @@ packages: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.7.0 - jest-config: 29.7.0(@types/node@20.6.2)(ts-node@10.9.2) + jest-config: 29.7.0(@types/node@20.6.2) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -3919,6 +3916,7 @@ packages: dependencies: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.4.15 + dev: true /@jsdevtools/ono@7.1.3: resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==} @@ -5331,6 +5329,7 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true + dev: true optional: true /@swc/core-darwin-x64@1.4.2: @@ -5339,6 +5338,7 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true + dev: true optional: true /@swc/core-linux-arm-gnueabihf@1.4.2: @@ -5347,6 +5347,7 @@ packages: cpu: [arm] os: [linux] requiresBuild: true + dev: true optional: true /@swc/core-linux-arm64-gnu@1.4.2: @@ -5355,6 +5356,7 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true + dev: true optional: true /@swc/core-linux-arm64-musl@1.4.2: @@ -5363,6 +5365,7 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true + dev: true optional: true /@swc/core-linux-x64-gnu@1.4.2: @@ -5371,6 +5374,7 @@ packages: cpu: [x64] os: [linux] requiresBuild: true + dev: true optional: true /@swc/core-linux-x64-musl@1.4.2: @@ -5379,6 +5383,7 @@ packages: cpu: [x64] os: [linux] requiresBuild: true + dev: true optional: true /@swc/core-win32-arm64-msvc@1.4.2: @@ -5387,6 +5392,7 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true + dev: true optional: true /@swc/core-win32-ia32-msvc@1.4.2: @@ -5395,6 +5401,7 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true + dev: true optional: true /@swc/core-win32-x64-msvc@1.4.2: @@ -5403,6 +5410,7 @@ packages: cpu: [x64] os: [win32] requiresBuild: true + dev: true optional: true /@swc/core@1.4.2: @@ -5428,9 +5436,11 @@ packages: '@swc/core-win32-arm64-msvc': 1.4.2 '@swc/core-win32-ia32-msvc': 1.4.2 '@swc/core-win32-x64-msvc': 1.4.2 + dev: true /@swc/counter@0.1.3: resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==} + dev: true /@swc/helpers@0.5.2: resolution: {integrity: sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw==} @@ -5464,6 +5474,7 @@ packages: /@swc/types@0.1.5: resolution: {integrity: sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==} + dev: true /@szmarczak/http-timer@4.0.6: resolution: {integrity: sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==} @@ -5521,7 +5532,7 @@ packages: chalk: 3.0.0 css.escape: 1.5.1 dom-accessibility-api: 0.6.3 - jest: 29.7.0(@types/node@20.5.7)(ts-node@10.9.2) + jest: 29.7.0(@types/node@20.5.7) lodash: 4.17.21 redent: 3.0.0 dev: true @@ -5554,15 +5565,19 @@ packages: /@tsconfig/node10@1.0.9: resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} + dev: true /@tsconfig/node12@1.0.11: resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} + dev: true /@tsconfig/node14@1.0.3: resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} + dev: true /@tsconfig/node16@1.0.4: resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} + dev: true /@types/aria-query@5.0.4: resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==} @@ -6610,6 +6625,7 @@ packages: /acorn-walk@8.3.2: resolution: {integrity: sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==} engines: {node: '>=0.4.0'} + dev: true /acorn@8.11.3: resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} @@ -6750,6 +6766,7 @@ packages: /arg@4.1.3: resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + dev: true /arg@5.0.2: resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} @@ -7902,7 +7919,7 @@ packages: typescript: 5.2.2 dev: true - /create-jest@29.7.0(@types/node@16.18.85)(ts-node@10.9.2): + /create-jest@29.7.0(@types/node@16.18.85): resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -7911,7 +7928,7 @@ packages: chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@16.18.85)(ts-node@10.9.2) + jest-config: 29.7.0(@types/node@16.18.85) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -7921,7 +7938,7 @@ packages: - ts-node dev: true - /create-jest@29.7.0(@types/node@18.11.3)(ts-node@10.9.2): + /create-jest@29.7.0(@types/node@18.11.3): resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -7930,7 +7947,7 @@ packages: chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@18.11.3)(ts-node@10.9.2) + jest-config: 29.7.0(@types/node@18.11.3) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -7940,7 +7957,7 @@ packages: - ts-node dev: true - /create-jest@29.7.0(@types/node@20.5.7)(ts-node@10.9.2): + /create-jest@29.7.0(@types/node@20.5.7): resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -7949,7 +7966,7 @@ packages: chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@20.5.7)(ts-node@10.9.2) + jest-config: 29.7.0(@types/node@20.5.7) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -7960,6 +7977,7 @@ packages: /create-require@1.1.1: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} + dev: true /cross-env@7.0.3: resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} @@ -8307,6 +8325,7 @@ packages: /diff@4.0.2: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} + dev: true /diff@5.2.0: resolution: {integrity: sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==} @@ -9006,7 +9025,7 @@ packages: '@typescript-eslint/eslint-plugin': 6.6.0(@typescript-eslint/parser@6.6.0)(eslint@8.48.0)(typescript@5.2.2) '@typescript-eslint/utils': 5.62.0(eslint@8.48.0)(typescript@5.2.2) eslint: 8.48.0 - jest: 29.7.0(@types/node@20.5.7)(ts-node@10.9.2) + jest: 29.7.0(@types/node@20.5.7) transitivePeerDependencies: - supports-color - typescript @@ -11094,7 +11113,7 @@ packages: - babel-plugin-macros - supports-color - /jest-cli@29.7.0(@types/node@16.18.85)(ts-node@10.9.2): + /jest-cli@29.7.0(@types/node@16.18.85): resolution: {integrity: sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -11104,14 +11123,14 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2) + '@jest/core': 29.7.0 '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@types/node@16.18.85)(ts-node@10.9.2) + create-jest: 29.7.0(@types/node@16.18.85) exit: 0.1.2 import-local: 3.1.0 - jest-config: 29.7.0(@types/node@16.18.85)(ts-node@10.9.2) + jest-config: 29.7.0(@types/node@16.18.85) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -11122,7 +11141,7 @@ packages: - ts-node dev: true - /jest-cli@29.7.0(@types/node@18.11.3)(ts-node@10.9.2): + /jest-cli@29.7.0(@types/node@18.11.3): resolution: {integrity: sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -11132,14 +11151,14 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2) + '@jest/core': 29.7.0 '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@types/node@18.11.3)(ts-node@10.9.2) + create-jest: 29.7.0(@types/node@18.11.3) exit: 0.1.2 import-local: 3.1.0 - jest-config: 29.7.0(@types/node@18.11.3)(ts-node@10.9.2) + jest-config: 29.7.0(@types/node@18.11.3) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -11150,7 +11169,7 @@ packages: - ts-node dev: true - /jest-cli@29.7.0(@types/node@20.5.7)(ts-node@10.9.2): + /jest-cli@29.7.0(@types/node@20.5.7): resolution: {integrity: sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -11160,14 +11179,14 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2) + '@jest/core': 29.7.0 '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@types/node@20.5.7)(ts-node@10.9.2) + create-jest: 29.7.0(@types/node@20.5.7) exit: 0.1.2 import-local: 3.1.0 - jest-config: 29.7.0(@types/node@20.5.7)(ts-node@10.9.2) + jest-config: 29.7.0(@types/node@20.5.7) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -11177,12 +11196,12 @@ packages: - supports-color - ts-node - /jest-config@29.7.0(@types/node@16.18.85)(ts-node@10.9.2): + /jest-config@29.7.0(@types/node@16.18.85): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@types/node': '*' - ts-node: 10.9.2 + ts-node: '>=9.0.0' peerDependenciesMeta: '@types/node': optional: true @@ -11212,18 +11231,17 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.2(@swc/core@1.4.2)(@types/node@20.5.7)(typescript@5.2.2) transitivePeerDependencies: - babel-plugin-macros - supports-color dev: true - /jest-config@29.7.0(@types/node@18.11.3)(ts-node@10.9.2): + /jest-config@29.7.0(@types/node@18.11.3): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@types/node': '*' - ts-node: 10.9.2 + ts-node: '>=9.0.0' peerDependenciesMeta: '@types/node': optional: true @@ -11253,18 +11271,17 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.2(@swc/core@1.4.2)(@types/node@20.5.7)(typescript@5.2.2) transitivePeerDependencies: - babel-plugin-macros - supports-color dev: true - /jest-config@29.7.0(@types/node@20.5.7)(ts-node@10.9.2): + /jest-config@29.7.0(@types/node@20.5.7): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@types/node': '*' - ts-node: 10.9.2 + ts-node: '>=9.0.0' peerDependenciesMeta: '@types/node': optional: true @@ -11294,17 +11311,16 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.2(@swc/core@1.4.2)(@types/node@20.5.7)(typescript@5.2.2) transitivePeerDependencies: - babel-plugin-macros - supports-color - /jest-config@29.7.0(@types/node@20.6.2)(ts-node@10.9.2): + /jest-config@29.7.0(@types/node@20.6.2): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@types/node': '*' - ts-node: 10.9.2 + ts-node: '>=9.0.0' peerDependenciesMeta: '@types/node': optional: true @@ -11334,7 +11350,6 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.2(@swc/core@1.4.2)(@types/node@20.5.7)(typescript@5.2.2) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -11658,7 +11673,7 @@ packages: merge-stream: 2.0.0 supports-color: 8.1.1 - /jest@29.7.0(@types/node@16.18.85)(ts-node@10.9.2): + /jest@29.7.0(@types/node@16.18.85): resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -11668,10 +11683,10 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2) + '@jest/core': 29.7.0 '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.7.0(@types/node@16.18.85)(ts-node@10.9.2) + jest-cli: 29.7.0(@types/node@16.18.85) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -11679,7 +11694,7 @@ packages: - ts-node dev: true - /jest@29.7.0(@types/node@18.11.3)(ts-node@10.9.2): + /jest@29.7.0(@types/node@18.11.3): resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -11689,10 +11704,10 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2) + '@jest/core': 29.7.0 '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.7.0(@types/node@18.11.3)(ts-node@10.9.2) + jest-cli: 29.7.0(@types/node@18.11.3) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -11700,7 +11715,7 @@ packages: - ts-node dev: true - /jest@29.7.0(@types/node@20.5.7)(ts-node@10.9.2): + /jest@29.7.0(@types/node@20.5.7): resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -11710,10 +11725,10 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2) + '@jest/core': 29.7.0 '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.7.0(@types/node@20.5.7)(ts-node@10.9.2) + jest-cli: 29.7.0(@types/node@20.5.7) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -12300,6 +12315,7 @@ packages: /make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} + dev: true /makeerror@1.0.12: resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==} @@ -15505,7 +15521,7 @@ packages: '@babel/core': 7.24.0 bs-logger: 0.2.6 fast-json-stable-stringify: 2.1.0 - jest: 29.7.0(@types/node@16.18.85)(ts-node@10.9.2) + jest: 29.7.0(@types/node@16.18.85) jest-util: 29.7.0 json5: 2.2.3 lodash.memoize: 4.1.2 @@ -15515,8 +15531,8 @@ packages: yargs-parser: 21.1.1 dev: true - /ts-node@10.9.2(@swc/core@1.4.2)(@types/node@16.18.85)(typescript@5.2.2): - resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} + /ts-node@10.9.1(@swc/core@1.4.2)(@types/node@16.18.85)(typescript@5.2.2): + resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: '@swc/core': '>=1.2.50' @@ -15547,37 +15563,6 @@ packages: yn: 3.1.1 dev: true - /ts-node@10.9.2(@swc/core@1.4.2)(@types/node@20.5.7)(typescript@5.2.2): - resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} - hasBin: true - peerDependencies: - '@swc/core': '>=1.2.50' - '@swc/wasm': '>=1.2.50' - '@types/node': '*' - typescript: 5.2.2 - peerDependenciesMeta: - '@swc/core': - optional: true - '@swc/wasm': - optional: true - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@swc/core': 1.4.2 - '@tsconfig/node10': 1.0.9 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 20.5.7 - acorn: 8.11.3 - acorn-walk: 8.3.2 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.2.2 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - /tsconfig-paths@3.15.0: resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==} dependencies: @@ -15973,6 +15958,7 @@ packages: /v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} + dev: true /v8-to-istanbul@9.2.0: resolution: {integrity: sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==} @@ -16402,6 +16388,7 @@ packages: /yn@3.1.1: resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} engines: {node: '>=6'} + dev: true /yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} diff --git a/test/runE2E.ts b/test/runE2E.ts index 5905c92b04..307f9405e3 100644 --- a/test/runE2E.ts +++ b/test/runE2E.ts @@ -3,6 +3,10 @@ import minimist from 'minimist' import path from 'path' import shelljs from 'shelljs' import slash from 'slash' +import { fileURLToPath } from 'url' + +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) shelljs.env.DISABLE_LOGGING = 'true'