From f69bc8cae9eea90e47ef9b9ad216ab29c3a257d2 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Fri, 24 Jun 2022 14:43:45 -0400 Subject: [PATCH] refactor: add package.json to all test runners for noExternal error --- .../test/fixtures/api-routes/package.json | 8 ++ .../test/fixtures/astro-response/package.json | 8 ++ .../test/fixtures/config-vite/package.json | 8 ++ .../astro/test/fixtures/hmr-css/package.json | 8 ++ .../fixtures/import-ts-with-js/package.json | 8 ++ .../fixtures/page-level-styles/package.json | 8 ++ .../test/fixtures/ssr-api-route/package.json | 8 ++ .../test/fixtures/ssr-assets/package.json | 8 ++ .../test/fixtures/ssr-dynamic/package.json | 8 ++ .../fixtures/ssr-hoisted-script/package.json | 8 ++ .../test/fixtures/ssr-request/package.json | 8 ++ .../test/fixtures/ssr-response/package.json | 8 ++ .../test/fixtures/status-code/package.json | 8 ++ .../test/fixtures/type-imports/package.json | 8 ++ .../test/fixtures/unused-slot/package.json | 8 ++ pnpm-lock.yaml | 90 +++++++++++++++++++ 16 files changed, 210 insertions(+) create mode 100644 packages/astro/test/fixtures/api-routes/package.json create mode 100644 packages/astro/test/fixtures/astro-response/package.json create mode 100644 packages/astro/test/fixtures/config-vite/package.json create mode 100644 packages/astro/test/fixtures/hmr-css/package.json create mode 100644 packages/astro/test/fixtures/import-ts-with-js/package.json create mode 100644 packages/astro/test/fixtures/page-level-styles/package.json create mode 100644 packages/astro/test/fixtures/ssr-api-route/package.json create mode 100644 packages/astro/test/fixtures/ssr-assets/package.json create mode 100644 packages/astro/test/fixtures/ssr-dynamic/package.json create mode 100644 packages/astro/test/fixtures/ssr-hoisted-script/package.json create mode 100644 packages/astro/test/fixtures/ssr-request/package.json create mode 100644 packages/astro/test/fixtures/ssr-response/package.json create mode 100644 packages/astro/test/fixtures/status-code/package.json create mode 100644 packages/astro/test/fixtures/type-imports/package.json create mode 100644 packages/astro/test/fixtures/unused-slot/package.json diff --git a/packages/astro/test/fixtures/api-routes/package.json b/packages/astro/test/fixtures/api-routes/package.json new file mode 100644 index 000000000..0f7052df4 --- /dev/null +++ b/packages/astro/test/fixtures/api-routes/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/api-routes", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/astro-response/package.json b/packages/astro/test/fixtures/astro-response/package.json new file mode 100644 index 000000000..a83253490 --- /dev/null +++ b/packages/astro/test/fixtures/astro-response/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/astro-response", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/config-vite/package.json b/packages/astro/test/fixtures/config-vite/package.json new file mode 100644 index 000000000..c226030fb --- /dev/null +++ b/packages/astro/test/fixtures/config-vite/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/config-vite", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/hmr-css/package.json b/packages/astro/test/fixtures/hmr-css/package.json new file mode 100644 index 000000000..36bf56c91 --- /dev/null +++ b/packages/astro/test/fixtures/hmr-css/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/hmr-css", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/import-ts-with-js/package.json b/packages/astro/test/fixtures/import-ts-with-js/package.json new file mode 100644 index 000000000..53405e943 --- /dev/null +++ b/packages/astro/test/fixtures/import-ts-with-js/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/import-ts-with-js", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/page-level-styles/package.json b/packages/astro/test/fixtures/page-level-styles/package.json new file mode 100644 index 000000000..a5df4918d --- /dev/null +++ b/packages/astro/test/fixtures/page-level-styles/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/page-level-styles", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/ssr-api-route/package.json b/packages/astro/test/fixtures/ssr-api-route/package.json new file mode 100644 index 000000000..f31c4aeee --- /dev/null +++ b/packages/astro/test/fixtures/ssr-api-route/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/ssr-api-route", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/ssr-assets/package.json b/packages/astro/test/fixtures/ssr-assets/package.json new file mode 100644 index 000000000..446962ec2 --- /dev/null +++ b/packages/astro/test/fixtures/ssr-assets/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/ssr-assets", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/ssr-dynamic/package.json b/packages/astro/test/fixtures/ssr-dynamic/package.json new file mode 100644 index 000000000..f79690814 --- /dev/null +++ b/packages/astro/test/fixtures/ssr-dynamic/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/ssr-dynamic", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/ssr-hoisted-script/package.json b/packages/astro/test/fixtures/ssr-hoisted-script/package.json new file mode 100644 index 000000000..d77f090b1 --- /dev/null +++ b/packages/astro/test/fixtures/ssr-hoisted-script/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/ssr-hoisted-script", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/ssr-request/package.json b/packages/astro/test/fixtures/ssr-request/package.json new file mode 100644 index 000000000..4b71cfa55 --- /dev/null +++ b/packages/astro/test/fixtures/ssr-request/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/ssr-request", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/ssr-response/package.json b/packages/astro/test/fixtures/ssr-response/package.json new file mode 100644 index 000000000..420d01c55 --- /dev/null +++ b/packages/astro/test/fixtures/ssr-response/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/ssr-response", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/status-code/package.json b/packages/astro/test/fixtures/status-code/package.json new file mode 100644 index 000000000..fcb9f1c94 --- /dev/null +++ b/packages/astro/test/fixtures/status-code/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/status-code", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/type-imports/package.json b/packages/astro/test/fixtures/type-imports/package.json new file mode 100644 index 000000000..6efd1e208 --- /dev/null +++ b/packages/astro/test/fixtures/type-imports/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/type-imports", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/packages/astro/test/fixtures/unused-slot/package.json b/packages/astro/test/fixtures/unused-slot/package.json new file mode 100644 index 000000000..b30e1f40e --- /dev/null +++ b/packages/astro/test/fixtures/unused-slot/package.json @@ -0,0 +1,8 @@ +{ + "name": "@test/unused-slot", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a21584b70..66c8e4bd2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1055,6 +1055,12 @@ importers: '@astrojs/svelte': link:../../../../integrations/svelte astro: link:../../.. + packages/astro/test/fixtures/api-routes: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + packages/astro/test/fixtures/astro pages: specifiers: astro: workspace:* @@ -1329,6 +1335,12 @@ importers: dependencies: astro: link:../../.. + packages/astro/test/fixtures/astro-response: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + packages/astro/test/fixtures/astro-scripts: specifiers: astro: workspace:* @@ -1383,6 +1395,12 @@ importers: dependencies: astro: link:../../.. + packages/astro/test/fixtures/config-vite: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + packages/astro/test/fixtures/css-assets: specifiers: '@astrojs/test-font-awesome-package': file:packages/font-awesome @@ -1487,6 +1505,18 @@ importers: '@fontsource/montserrat': 4.5.11 astro: link:../../.. + packages/astro/test/fixtures/hmr-css: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + + packages/astro/test/fixtures/import-ts-with-js: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + packages/astro/test/fixtures/integration-add-page-extension: specifiers: astro: workspace:* @@ -1556,6 +1586,12 @@ importers: '@astrojs/preact': link:../../../../integrations/preact astro: link:../../.. + packages/astro/test/fixtures/page-level-styles: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + packages/astro/test/fixtures/postcss: specifiers: '@astrojs/solid-js': workspace:* @@ -1685,6 +1721,24 @@ importers: '@astrojs/solid-js': link:../../../../integrations/solid astro: link:../../.. + packages/astro/test/fixtures/ssr-api-route: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + + packages/astro/test/fixtures/ssr-assets: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + + packages/astro/test/fixtures/ssr-dynamic: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + packages/astro/test/fixtures/ssr-env: specifiers: '@astrojs/preact': workspace:* @@ -1693,6 +1747,12 @@ importers: '@astrojs/preact': link:../../../../integrations/preact astro: link:../../.. + packages/astro/test/fixtures/ssr-hoisted-script: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + packages/astro/test/fixtures/ssr-markdown: specifiers: astro: workspace:* @@ -1713,6 +1773,18 @@ importers: dependencies: astro: link:../../.. + packages/astro/test/fixtures/ssr-request: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + + packages/astro/test/fixtures/ssr-response: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + packages/astro/test/fixtures/ssr-scripts: specifiers: '@astrojs/preact': 'workspace:' @@ -1776,6 +1848,12 @@ importers: packages/astro/test/fixtures/static-build/pkg: specifiers: {} + packages/astro/test/fixtures/status-code: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + packages/astro/test/fixtures/streaming: specifiers: astro: workspace:* @@ -1810,6 +1888,18 @@ importers: dependencies: astro: link:../../.. + packages/astro/test/fixtures/type-imports: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + + packages/astro/test/fixtures/unused-slot: + specifiers: + astro: workspace:* + dependencies: + astro: link:../../.. + packages/astro/test/fixtures/vue-component: specifiers: '@astrojs/vue': workspace:*