From 95a78743bef63b5233c342a5d3ccfbb40b51f03c Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Tue, 8 Mar 2022 15:46:11 -0600 Subject: [PATCH] Move from yarn to pnpm (#2455) * chore: `yarn` => `pnpm` * docs: `yarn` => `pnpm` * chore(ci): yarn => pnpm * chore(ci): update pnpm cache path * fix: add missing deps * fix: add missing deps * test: add package.json to all test fixtures * chore: improve hoisting behavior * chore: move turbo into package.json * chore: update npmrc * fix: add missing `debug` dependency * chore: remove prepare script * test: fix new tests * fix: fully resolve renderer paths and `astro/internal` path * chore: update lockfile * chore: remove log * fix: resolve renderers in vite-plugin-jsx * fix: prefer public-hoist-pattern to shamefully-hoist * chore: ignore @babel/core peer warning * chore: update dependencies * test: add autoprefixer as explicit dep * chore: update `.npmrc` file in examples * chore: update dependencies * fix: resolve renderer dependencies in static build * fix: static build renderer resolution * chore: fix smoke tests * chore: hoist autoprefixer * chore: update lockfile * attempt: use full file:// path on Windows * attempt: use astro/internal * attempt: optimize astro/internal * attempt: expose ./internal.js * chore: add missing package.json files * attempt: resolve astro/internal path * chore: tidy package.json * chore: update lockfile * chore: update deps * chore: update deps * chore: yarn -> pnpm * attempt: explicit /@fs urls * attempt: explicit /@fs urls * chore: update all examples for pnpm * chore: fix hoisting for with-vite-plugin-pwa * chore(ci): fix sharp install * chore: update with-vite-plugin-pwa example * fix: pin vite-plugin-pwa to 0.11.11 * fix: add workbox-window to vite-plugin-pwa deps * refactor: use pnpm update --recursive Co-authored-by: JuanM04 * chore: yarn => pnpm * chore: yarn => pnpm * fix: update smoke test to skip examples which don't work in static build * update lockfile * chore: update .npmrc files * chore: update lockfile * fix: smoke script * chore: update .npmrc file * fix: return to shamefully-hoist (shamefully) * chore: update lockfile * fix(smoke): ignore scripts for smoke tests * fix: update example to disable renderers * chore: bump version * chore(ci): fix smoke tests * attempt: disable --frozen-lockfile for smoke tests * chore: update smoke test * chore: fix rebase issue * chore: update lockfile * fix: smoke tests * fix(ci): run external smoke tests first * fix(ci): run syntax * chore: update lockfile * fix(ci): ensure submodules are up-to-date * fix(ci): ensure submodules are up-to-date * chore: update lockfile * chore: update for webapi * chore: silence node:* warnings * chore: update deps * fix(ci): persist generated webapi assets * fix(ci): webapi build script * chore(ci): remove custom node caching * chore: keep turbo.json * chore: update turbo, ignore create-astro * chore: update deps * fix(ci): test command * chore(ci): update test script Co-authored-by: JuanM04 --- package.json | 14 +++++++++----- src/core/build/static-build.ts | 3 ++- src/vite-plugin-astro/compile.ts | 2 +- src/vite-plugin-jsx/index.ts | 12 ++++++------ src/vite-plugin-markdown/index.ts | 3 ++- test/fixtures/0-css/package.json | 8 ++++++++ test/fixtures/astro-assets/package.json | 8 ++++++++ test/fixtures/astro-attrs/package.json | 8 ++++++++ test/fixtures/astro-basic/package.json | 8 ++++++++ test/fixtures/astro-children/package.json | 8 ++++++++ test/fixtures/astro-class-list/package.json | 8 ++++++++ test/fixtures/astro-client-only/package.json | 8 ++++++++ test/fixtures/astro-component-code/package.json | 8 ++++++++ test/fixtures/astro-components/package.json | 8 ++++++++ .../astro-css-bundling-import/package.json | 8 ++++++++ .../astro-css-bundling-nested-layouts/package.json | 8 ++++++++ test/fixtures/astro-css-bundling/package.json | 8 ++++++++ test/fixtures/astro-doctype/package.json | 8 ++++++++ test/fixtures/astro-dynamic/package.json | 8 ++++++++ test/fixtures/astro-envs/package.json | 8 ++++++++ test/fixtures/astro-expr/package.json | 8 ++++++++ test/fixtures/astro-external-files/package.json | 8 ++++++++ test/fixtures/astro-fallback/package.json | 8 ++++++++ test/fixtures/astro-get-static-paths/package.json | 8 ++++++++ test/fixtures/astro-global/package.json | 8 ++++++++ test/fixtures/astro-jsx/package.json | 9 +++++++++ test/fixtures/astro-markdown-drafts/package.json | 8 ++++++++ test/fixtures/astro-markdown-plugins/package.json | 9 +++++++++ .../astro-markdown-shiki/langs/package.json | 8 ++++++++ .../astro-markdown-shiki/normal/package.json | 8 ++++++++ .../themes-custom/package.json | 8 ++++++++ .../themes-integrated/package.json | 8 ++++++++ .../astro-markdown-shiki/wrap-false/package.json | 8 ++++++++ .../astro-markdown-shiki/wrap-null/package.json | 8 ++++++++ .../astro-markdown-shiki/wrap-true/package.json | 8 ++++++++ test/fixtures/astro-markdown/package.json | 8 ++++++++ .../fixtures/astro-page-directory-url/package.json | 8 ++++++++ test/fixtures/astro-pages/package.json | 8 ++++++++ test/fixtures/astro-pagination/package.json | 8 ++++++++ test/fixtures/astro-partial-html/package.json | 8 ++++++++ test/fixtures/astro-public/package.json | 8 ++++++++ test/fixtures/astro-scripts/package.json | 8 ++++++++ test/fixtures/astro-sitemap-rss/package.json | 8 ++++++++ test/fixtures/astro-slots/package.json | 8 ++++++++ test/fixtures/builtins/package.json | 5 +++-- test/fixtures/config-hostname/package.json | 8 ++++++++ test/fixtures/config-path/package.json | 8 ++++++++ test/fixtures/config-port/package.json | 8 ++++++++ test/fixtures/custom-elements/package.json | 5 +++-- test/fixtures/debug-component/package.json | 8 ++++++++ test/fixtures/errors/package.json | 9 +++++++++ test/fixtures/fetch/package.json | 8 ++++++++ test/fixtures/lit-element/package.json | 9 +++++++++ test/fixtures/markdown/package.json | 8 ++++++++ test/fixtures/postcss/package.json | 10 ++++++++++ test/fixtures/preact-component/package.json | 8 ++++++++ test/fixtures/react-component/package.json | 8 ++++++++ test/fixtures/remote-css/package.json | 8 ++++++++ test/fixtures/route-manifest/package.json | 8 ++++++++ test/fixtures/sass/package.json | 9 +++++++++ test/fixtures/slots-preact/package.json | 8 ++++++++ test/fixtures/slots-react/package.json | 8 ++++++++ test/fixtures/slots-solid/package.json | 9 +++++++++ .../slots-solid/src/components/Counter.jsx | 3 ++- test/fixtures/slots-svelte/package.json | 8 ++++++++ test/fixtures/slots-vue/package.json | 8 ++++++++ test/fixtures/solid-component/package.json | 9 +++++++++ test/fixtures/static build/package.json | 3 ++- .../static-build-code-component/package.json | 8 ++++++++ test/fixtures/static-build-frameworks/package.json | 9 +++++++++ .../static-build-page-url-format/package.json | 8 ++++++++ test/fixtures/svelte-component/package.json | 8 ++++++++ test/fixtures/vue-component/package.json | 8 ++++++++ test/fixtures/with-endpoint-routes/package.json | 8 ++++++++ .../with-subpath-no-trailing-slash/package.json | 8 ++++++++ .../with-subpath-trailing-slash/package.json | 8 ++++++++ test/fixtures/without-site-config/package.json | 8 ++++++++ test/fixtures/without-subpath/package.json | 8 ++++++++ 78 files changed, 592 insertions(+), 20 deletions(-) create mode 100644 test/fixtures/0-css/package.json create mode 100644 test/fixtures/astro-assets/package.json create mode 100644 test/fixtures/astro-attrs/package.json create mode 100644 test/fixtures/astro-basic/package.json create mode 100644 test/fixtures/astro-children/package.json create mode 100644 test/fixtures/astro-class-list/package.json create mode 100644 test/fixtures/astro-client-only/package.json create mode 100644 test/fixtures/astro-component-code/package.json create mode 100644 test/fixtures/astro-components/package.json create mode 100644 test/fixtures/astro-css-bundling-import/package.json create mode 100644 test/fixtures/astro-css-bundling-nested-layouts/package.json create mode 100644 test/fixtures/astro-css-bundling/package.json create mode 100644 test/fixtures/astro-doctype/package.json create mode 100644 test/fixtures/astro-dynamic/package.json create mode 100644 test/fixtures/astro-envs/package.json create mode 100644 test/fixtures/astro-expr/package.json create mode 100644 test/fixtures/astro-external-files/package.json create mode 100644 test/fixtures/astro-fallback/package.json create mode 100644 test/fixtures/astro-get-static-paths/package.json create mode 100644 test/fixtures/astro-global/package.json create mode 100644 test/fixtures/astro-jsx/package.json create mode 100644 test/fixtures/astro-markdown-drafts/package.json create mode 100644 test/fixtures/astro-markdown-plugins/package.json create mode 100644 test/fixtures/astro-markdown-shiki/langs/package.json create mode 100644 test/fixtures/astro-markdown-shiki/normal/package.json create mode 100644 test/fixtures/astro-markdown-shiki/themes-custom/package.json create mode 100644 test/fixtures/astro-markdown-shiki/themes-integrated/package.json create mode 100644 test/fixtures/astro-markdown-shiki/wrap-false/package.json create mode 100644 test/fixtures/astro-markdown-shiki/wrap-null/package.json create mode 100644 test/fixtures/astro-markdown-shiki/wrap-true/package.json create mode 100644 test/fixtures/astro-markdown/package.json create mode 100644 test/fixtures/astro-page-directory-url/package.json create mode 100644 test/fixtures/astro-pages/package.json create mode 100644 test/fixtures/astro-pagination/package.json create mode 100644 test/fixtures/astro-partial-html/package.json create mode 100644 test/fixtures/astro-public/package.json create mode 100644 test/fixtures/astro-scripts/package.json create mode 100644 test/fixtures/astro-sitemap-rss/package.json create mode 100644 test/fixtures/astro-slots/package.json create mode 100644 test/fixtures/config-hostname/package.json create mode 100644 test/fixtures/config-path/package.json create mode 100644 test/fixtures/config-port/package.json create mode 100644 test/fixtures/debug-component/package.json create mode 100644 test/fixtures/errors/package.json create mode 100644 test/fixtures/fetch/package.json create mode 100644 test/fixtures/lit-element/package.json create mode 100644 test/fixtures/markdown/package.json create mode 100644 test/fixtures/postcss/package.json create mode 100644 test/fixtures/preact-component/package.json create mode 100644 test/fixtures/react-component/package.json create mode 100644 test/fixtures/remote-css/package.json create mode 100644 test/fixtures/route-manifest/package.json create mode 100644 test/fixtures/sass/package.json create mode 100644 test/fixtures/slots-preact/package.json create mode 100644 test/fixtures/slots-react/package.json create mode 100644 test/fixtures/slots-solid/package.json create mode 100644 test/fixtures/slots-svelte/package.json create mode 100644 test/fixtures/slots-vue/package.json create mode 100644 test/fixtures/solid-component/package.json create mode 100644 test/fixtures/static-build-code-component/package.json create mode 100644 test/fixtures/static-build-frameworks/package.json create mode 100644 test/fixtures/static-build-page-url-format/package.json create mode 100644 test/fixtures/svelte-component/package.json create mode 100644 test/fixtures/vue-component/package.json create mode 100644 test/fixtures/with-endpoint-routes/package.json create mode 100644 test/fixtures/with-subpath-no-trailing-slash/package.json create mode 100644 test/fixtures/with-subpath-trailing-slash/package.json create mode 100644 test/fixtures/without-site-config/package.json create mode 100644 test/fixtures/without-subpath/package.json diff --git a/package.json b/package.json index 3580b7af1bb0..508ddfb84404 100644 --- a/package.json +++ b/package.json @@ -16,12 +16,12 @@ "exports": { ".": "./astro.js", "./env": "./env.d.ts", + "./internal": "./internal.js", "./app/node": "./dist/core/app/node.js", "./client/*": "./dist/runtime/client/*", "./components": "./components/index.js", "./components/*": "./components/*", "./debug": "./components/Debug.astro", - "./internal": "./dist/runtime/server/index.js", "./internal/*": "./dist/runtime/server/*", "./package.json": "./package.json", "./runtime/*": "./dist/runtime/*", @@ -71,12 +71,10 @@ "@babel/traverse": "^7.15.4", "@proload/core": "^0.2.2", "@proload/plugin-tsm": "^0.1.0", - "@types/babel__core": "^7.1.15", - "@types/debug": "^4.1.7", - "@types/yargs-parser": "^20.2.1", "@web/parse5-utils": "^1.3.0", "ci-info": "^3.2.0", "common-ancestor-path": "^1.0.1", + "debug": "^4.3.3", "eol": "^0.9.1", "es-module-lexer": "^0.9.3", "esbuild": "0.13.7", @@ -115,15 +113,21 @@ "devDependencies": { "@astrojs/parser": "^0.22.1", "@babel/types": "^7.15.6", + "@types/babel__core": "^7.1.15", + "@types/babel__traverse": "^7.14.2", "@types/chai": "^4.2.22", "@types/common-ancestor-path": "^1.0.0", "@types/connect": "^3.4.35", + "@types/debug": "^4.1.7", + "@types/estree": "^0.0.50", "@types/mime": "^2.0.3", "@types/mocha": "^9.0.0", - "@types/node-fetch": "^3.0.0", + "@types/parse5": "^6.0.3", "@types/resolve": "^1.20.1", "@types/rimraf": "^3.0.2", "@types/send": "^0.17.1", + "@types/yargs-parser": "^20.2.1", + "astro-scripts": "workspace:*", "chai": "^4.3.4", "cheerio": "^1.0.0-rc.10", "execa": "^6.0.0", diff --git a/src/core/build/static-build.ts b/src/core/build/static-build.ts index d3e80ba3bafe..9224a03cecf9 100644 --- a/src/core/build/static-build.ts +++ b/src/core/build/static-build.ts @@ -15,6 +15,7 @@ import glob from 'fast-glob'; import * as vite from 'vite'; import { debug, error } from '../../core/logger.js'; import { prependForwardSlash, appendForwardSlash } from '../../core/path.js'; +import { resolveDependency } from '../../core/util.js'; import { createBuildInternals } from '../../core/build/internal.js'; import { rollupPluginAstroBuildCSS } from '../../vite-plugin-build-css/index.js'; import { emptyDir, prepareOutDir } from './fs.js'; @@ -273,7 +274,7 @@ async function collectRenderers(opts: StaticBuildOptions): Promise { const renderers = await Promise.all( viteLoadedRenderers.map(async (r) => { - const mod = await import(r.serverEntry); + const mod = await import(resolveDependency(r.serverEntry, opts.astroConfig)); return Object.create(r, { ssr: { value: mod.default, diff --git a/src/vite-plugin-astro/compile.ts b/src/vite-plugin-astro/compile.ts index 1e83bf871901..91e38f7054f7 100644 --- a/src/vite-plugin-astro/compile.ts +++ b/src/vite-plugin-astro/compile.ts @@ -53,7 +53,7 @@ async function compile(config: AstroConfig, filename: string, source: string, vi site: config.buildOptions.site, sourcefile: filename, sourcemap: 'both', - internalURL: 'astro/internal', + internalURL: `/@fs${new URL('../runtime/server/index.js', import.meta.url).pathname}`, experimentalStaticExtraction: config.buildOptions.experimentalStaticBuild, // TODO add experimental flag here preprocessStyle: async (value: string, attrs: Record) => { diff --git a/src/vite-plugin-jsx/index.ts b/src/vite-plugin-jsx/index.ts index 460b3f1fb8c4..9cb495422b80 100644 --- a/src/vite-plugin-jsx/index.ts +++ b/src/vite-plugin-jsx/index.ts @@ -9,7 +9,7 @@ import * as colors from 'kleur/colors'; import * as eslexer from 'es-module-lexer'; import path from 'path'; import { error } from '../core/logger.js'; -import { parseNpmName } from '../core/util.js'; +import { parseNpmName, resolveDependency } from '../core/util.js'; const JSX_RENDERER_CACHE = new WeakMap>(); const JSX_EXTENSIONS = new Set(['.jsx', '.tsx']); @@ -28,15 +28,15 @@ function getEsbuildLoader(fileExt: string): string { return fileExt.substr(1); } -async function importJSXRenderers(rendererNames: string[]): Promise> { +async function importJSXRenderers(config: AstroConfig): Promise> { const renderers = new Map(); await Promise.all( - rendererNames.map((name) => - import(name).then(({ default: renderer }) => { + config.renderers.map((name) => { + return import(resolveDependency(name, config)).then(({ default: renderer }) => { if (!renderer.jsxImportSource) return; renderers.set(renderer.jsxImportSource, renderer); }) - ) + }) ); return renderers; } @@ -100,7 +100,7 @@ export default function jsx({ config, logging }: AstroPluginJSXOptions): Plugin // load renderers (on first run only) if (!jsxRenderers) { jsxRenderers = new Map(); - const possibleRenderers = await importJSXRenderers(config.renderers); + const possibleRenderers = await importJSXRenderers(config); if (possibleRenderers.size === 0) { // note: we have filtered out all non-JSX files, so this error should only show if a JSX file is loaded with no matching renderers throw new Error( diff --git a/src/vite-plugin-markdown/index.ts b/src/vite-plugin-markdown/index.ts index 77c254781077..ac4f4891489e 100644 --- a/src/vite-plugin-markdown/index.ts +++ b/src/vite-plugin-markdown/index.ts @@ -3,6 +3,7 @@ import type { AstroConfig } from '../@types/astro'; import esbuild from 'esbuild'; import fs from 'fs'; +import { fileURLToPath } from 'url'; import { transform } from '@astrojs/compiler'; interface AstroPluginOptions { @@ -59,7 +60,7 @@ ${setup}`.trim(); site: config.buildOptions.site, sourcefile: id, sourcemap: 'inline', - internalURL: 'astro/internal', + internalURL: `/@fs${new URL('../runtime/server/index.js', import.meta.url).pathname}`, }); tsResult = `\nexport const metadata = ${JSON.stringify(metadata)}; diff --git a/test/fixtures/0-css/package.json b/test/fixtures/0-css/package.json new file mode 100644 index 000000000000..c5aee1448055 --- /dev/null +++ b/test/fixtures/0-css/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-0-css", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-assets/package.json b/test/fixtures/astro-assets/package.json new file mode 100644 index 000000000000..ccd6c778d759 --- /dev/null +++ b/test/fixtures/astro-assets/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-assets", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-attrs/package.json b/test/fixtures/astro-attrs/package.json new file mode 100644 index 000000000000..817536fe664e --- /dev/null +++ b/test/fixtures/astro-attrs/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-attrs", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-basic/package.json b/test/fixtures/astro-basic/package.json new file mode 100644 index 000000000000..f3e1fbdd902f --- /dev/null +++ b/test/fixtures/astro-basic/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-basic", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-children/package.json b/test/fixtures/astro-children/package.json new file mode 100644 index 000000000000..023df5e43fb5 --- /dev/null +++ b/test/fixtures/astro-children/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-children", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-class-list/package.json b/test/fixtures/astro-class-list/package.json new file mode 100644 index 000000000000..8c22b1960d36 --- /dev/null +++ b/test/fixtures/astro-class-list/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-class-list", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-client-only/package.json b/test/fixtures/astro-client-only/package.json new file mode 100644 index 000000000000..e08a86143f64 --- /dev/null +++ b/test/fixtures/astro-client-only/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-client-only", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-component-code/package.json b/test/fixtures/astro-component-code/package.json new file mode 100644 index 000000000000..ac7d50af70bf --- /dev/null +++ b/test/fixtures/astro-component-code/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-component-code", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-components/package.json b/test/fixtures/astro-components/package.json new file mode 100644 index 000000000000..0c4303230f3d --- /dev/null +++ b/test/fixtures/astro-components/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-components", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-css-bundling-import/package.json b/test/fixtures/astro-css-bundling-import/package.json new file mode 100644 index 000000000000..bc863ddfe51d --- /dev/null +++ b/test/fixtures/astro-css-bundling-import/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-css-bundling-import", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-css-bundling-nested-layouts/package.json b/test/fixtures/astro-css-bundling-nested-layouts/package.json new file mode 100644 index 000000000000..7f512af94f8b --- /dev/null +++ b/test/fixtures/astro-css-bundling-nested-layouts/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-css-bundling-nested-layouts", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-css-bundling/package.json b/test/fixtures/astro-css-bundling/package.json new file mode 100644 index 000000000000..d228c34e2ebb --- /dev/null +++ b/test/fixtures/astro-css-bundling/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-css-bundling", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-doctype/package.json b/test/fixtures/astro-doctype/package.json new file mode 100644 index 000000000000..699590249f82 --- /dev/null +++ b/test/fixtures/astro-doctype/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-doctype", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-dynamic/package.json b/test/fixtures/astro-dynamic/package.json new file mode 100644 index 000000000000..c3209cd04014 --- /dev/null +++ b/test/fixtures/astro-dynamic/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-dynamic", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-envs/package.json b/test/fixtures/astro-envs/package.json new file mode 100644 index 000000000000..699d04898e7a --- /dev/null +++ b/test/fixtures/astro-envs/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-envs", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-expr/package.json b/test/fixtures/astro-expr/package.json new file mode 100644 index 000000000000..bd2626d82ef5 --- /dev/null +++ b/test/fixtures/astro-expr/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-expr", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-external-files/package.json b/test/fixtures/astro-external-files/package.json new file mode 100644 index 000000000000..f0ff46bb4627 --- /dev/null +++ b/test/fixtures/astro-external-files/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-external-files", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-fallback/package.json b/test/fixtures/astro-fallback/package.json new file mode 100644 index 000000000000..35da56de9d84 --- /dev/null +++ b/test/fixtures/astro-fallback/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-fallback", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-get-static-paths/package.json b/test/fixtures/astro-get-static-paths/package.json new file mode 100644 index 000000000000..0805dbb8a52e --- /dev/null +++ b/test/fixtures/astro-get-static-paths/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-get-static-paths", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-global/package.json b/test/fixtures/astro-global/package.json new file mode 100644 index 000000000000..4118dc0ef9ef --- /dev/null +++ b/test/fixtures/astro-global/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-global", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-jsx/package.json b/test/fixtures/astro-jsx/package.json new file mode 100644 index 000000000000..7b75fa7b406d --- /dev/null +++ b/test/fixtures/astro-jsx/package.json @@ -0,0 +1,9 @@ +{ + "name": "@astrojs/test-astro-jsx", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*", + "@astrojs/renderer-solid": "workspace:*" + } +} diff --git a/test/fixtures/astro-markdown-drafts/package.json b/test/fixtures/astro-markdown-drafts/package.json new file mode 100644 index 000000000000..577f4da22bc2 --- /dev/null +++ b/test/fixtures/astro-markdown-drafts/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-markdown-drafts", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-markdown-plugins/package.json b/test/fixtures/astro-markdown-plugins/package.json new file mode 100644 index 000000000000..1c0614fb4431 --- /dev/null +++ b/test/fixtures/astro-markdown-plugins/package.json @@ -0,0 +1,9 @@ +{ + "name": "@astrojs/test-astro-markdown-plugins", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*", + "hast-util-select": "^5.0.1" + } +} diff --git a/test/fixtures/astro-markdown-shiki/langs/package.json b/test/fixtures/astro-markdown-shiki/langs/package.json new file mode 100644 index 000000000000..fb835c9da380 --- /dev/null +++ b/test/fixtures/astro-markdown-shiki/langs/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-markdown-skiki-langs", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-markdown-shiki/normal/package.json b/test/fixtures/astro-markdown-shiki/normal/package.json new file mode 100644 index 000000000000..72092779add7 --- /dev/null +++ b/test/fixtures/astro-markdown-shiki/normal/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-markdown-skiki-normal", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-markdown-shiki/themes-custom/package.json b/test/fixtures/astro-markdown-shiki/themes-custom/package.json new file mode 100644 index 000000000000..b01753ad92db --- /dev/null +++ b/test/fixtures/astro-markdown-shiki/themes-custom/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-markdown-skiki-themes-custom", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-markdown-shiki/themes-integrated/package.json b/test/fixtures/astro-markdown-shiki/themes-integrated/package.json new file mode 100644 index 000000000000..e3e1f5b77de6 --- /dev/null +++ b/test/fixtures/astro-markdown-shiki/themes-integrated/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-markdown-skiki-themes-integrated", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-markdown-shiki/wrap-false/package.json b/test/fixtures/astro-markdown-shiki/wrap-false/package.json new file mode 100644 index 000000000000..e06cf96eebd4 --- /dev/null +++ b/test/fixtures/astro-markdown-shiki/wrap-false/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-markdown-skiki-wrap-false", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-markdown-shiki/wrap-null/package.json b/test/fixtures/astro-markdown-shiki/wrap-null/package.json new file mode 100644 index 000000000000..da4196dd81a2 --- /dev/null +++ b/test/fixtures/astro-markdown-shiki/wrap-null/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-markdown-skiki-wrap-null", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-markdown-shiki/wrap-true/package.json b/test/fixtures/astro-markdown-shiki/wrap-true/package.json new file mode 100644 index 000000000000..ed3eb926b6ee --- /dev/null +++ b/test/fixtures/astro-markdown-shiki/wrap-true/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-markdown-skiki-wrap-true", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-markdown/package.json b/test/fixtures/astro-markdown/package.json new file mode 100644 index 000000000000..c27585d6e55f --- /dev/null +++ b/test/fixtures/astro-markdown/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-markdown", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-page-directory-url/package.json b/test/fixtures/astro-page-directory-url/package.json new file mode 100644 index 000000000000..604f157a56de --- /dev/null +++ b/test/fixtures/astro-page-directory-url/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-page-directory-url", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-pages/package.json b/test/fixtures/astro-pages/package.json new file mode 100644 index 000000000000..2bd1bc5b079d --- /dev/null +++ b/test/fixtures/astro-pages/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-pages", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-pagination/package.json b/test/fixtures/astro-pagination/package.json new file mode 100644 index 000000000000..2aa298436642 --- /dev/null +++ b/test/fixtures/astro-pagination/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-pagination", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-partial-html/package.json b/test/fixtures/astro-partial-html/package.json new file mode 100644 index 000000000000..5b4c4bda8c56 --- /dev/null +++ b/test/fixtures/astro-partial-html/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-partial-html", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-public/package.json b/test/fixtures/astro-public/package.json new file mode 100644 index 000000000000..dd50459ff208 --- /dev/null +++ b/test/fixtures/astro-public/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-public", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-scripts/package.json b/test/fixtures/astro-scripts/package.json new file mode 100644 index 000000000000..5ad51911a401 --- /dev/null +++ b/test/fixtures/astro-scripts/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-scripts", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-sitemap-rss/package.json b/test/fixtures/astro-sitemap-rss/package.json new file mode 100644 index 000000000000..24331d753759 --- /dev/null +++ b/test/fixtures/astro-sitemap-rss/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-sitemap-rss", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/astro-slots/package.json b/test/fixtures/astro-slots/package.json new file mode 100644 index 000000000000..b003a5f51118 --- /dev/null +++ b/test/fixtures/astro-slots/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-astro-slots", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/builtins/package.json b/test/fixtures/builtins/package.json index 269d5f4395aa..808482374c97 100644 --- a/test/fixtures/builtins/package.json +++ b/test/fixtures/builtins/package.json @@ -1,8 +1,9 @@ { - "name": "@astrojs/astro-test-builtins", + "name": "@astrojs/test-builtins", "version": "1.2.0", "private": true, "dependencies": { + "astro": "workspace:*", "@astrojs/astro-test-builtins-dep": "file:./packages/dep" } -} \ No newline at end of file +} diff --git a/test/fixtures/config-hostname/package.json b/test/fixtures/config-hostname/package.json new file mode 100644 index 000000000000..4d3ebf1b4025 --- /dev/null +++ b/test/fixtures/config-hostname/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-config-hostname", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/config-path/package.json b/test/fixtures/config-path/package.json new file mode 100644 index 000000000000..d8c2d0c0587f --- /dev/null +++ b/test/fixtures/config-path/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-config-path", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/config-port/package.json b/test/fixtures/config-port/package.json new file mode 100644 index 000000000000..90c644a3a5ab --- /dev/null +++ b/test/fixtures/config-port/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-config-port", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/custom-elements/package.json b/test/fixtures/custom-elements/package.json index c04a465bf794..98f9b945542b 100644 --- a/test/fixtures/custom-elements/package.json +++ b/test/fixtures/custom-elements/package.json @@ -1,8 +1,9 @@ { "name": "@astrojs/test-custom-elements", - "version": "0.0.1", + "version": "0.0.0", "private": true, "dependencies": { - "@astrojs/test-custom-element-renderer": "0.0.1" + "astro": "workspace:*", + "@astrojs/test-custom-element-renderer": "workspace:*" } } diff --git a/test/fixtures/debug-component/package.json b/test/fixtures/debug-component/package.json new file mode 100644 index 000000000000..58c68b279ad1 --- /dev/null +++ b/test/fixtures/debug-component/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-debug-component", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/errors/package.json b/test/fixtures/errors/package.json new file mode 100644 index 000000000000..12f055717020 --- /dev/null +++ b/test/fixtures/errors/package.json @@ -0,0 +1,9 @@ +{ + "name": "@astrojs/test-errors", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*", + "@astrojs/renderer-solid": "workspace:*" + } +} diff --git a/test/fixtures/fetch/package.json b/test/fixtures/fetch/package.json new file mode 100644 index 000000000000..01a487d6d708 --- /dev/null +++ b/test/fixtures/fetch/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-fetch", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/lit-element/package.json b/test/fixtures/lit-element/package.json new file mode 100644 index 000000000000..c2a705092a7a --- /dev/null +++ b/test/fixtures/lit-element/package.json @@ -0,0 +1,9 @@ +{ + "name": "@astrojs/test-lit-element", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*", + "@astrojs/renderer-lit": "workspace:*" + } +} diff --git a/test/fixtures/markdown/package.json b/test/fixtures/markdown/package.json new file mode 100644 index 000000000000..5834fa82332b --- /dev/null +++ b/test/fixtures/markdown/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-markdown", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/postcss/package.json b/test/fixtures/postcss/package.json new file mode 100644 index 000000000000..831b4153c152 --- /dev/null +++ b/test/fixtures/postcss/package.json @@ -0,0 +1,10 @@ +{ + "name": "@astrojs/test-postcss", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*", + "autoprefixer": "^10.4.2", + "@astrojs/renderer-solid": "workspace:*" + } +} diff --git a/test/fixtures/preact-component/package.json b/test/fixtures/preact-component/package.json new file mode 100644 index 000000000000..bee9cbb1b642 --- /dev/null +++ b/test/fixtures/preact-component/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-preact-component", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/react-component/package.json b/test/fixtures/react-component/package.json new file mode 100644 index 000000000000..ef50d88ec751 --- /dev/null +++ b/test/fixtures/react-component/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-react-component", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/remote-css/package.json b/test/fixtures/remote-css/package.json new file mode 100644 index 000000000000..b5bd3783e3e7 --- /dev/null +++ b/test/fixtures/remote-css/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-remote-css", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/route-manifest/package.json b/test/fixtures/route-manifest/package.json new file mode 100644 index 000000000000..8661bfd205d2 --- /dev/null +++ b/test/fixtures/route-manifest/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-route-manifest", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/sass/package.json b/test/fixtures/sass/package.json new file mode 100644 index 000000000000..3f249728fe12 --- /dev/null +++ b/test/fixtures/sass/package.json @@ -0,0 +1,9 @@ +{ + "name": "@astrojs/test-sass", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*", + "sass": "^1.49.8" + } +} diff --git a/test/fixtures/slots-preact/package.json b/test/fixtures/slots-preact/package.json new file mode 100644 index 000000000000..e70a76aca282 --- /dev/null +++ b/test/fixtures/slots-preact/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-slots-preact", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/slots-react/package.json b/test/fixtures/slots-react/package.json new file mode 100644 index 000000000000..94e0d18a7644 --- /dev/null +++ b/test/fixtures/slots-react/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-slots-react", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/slots-solid/package.json b/test/fixtures/slots-solid/package.json new file mode 100644 index 000000000000..41732b907817 --- /dev/null +++ b/test/fixtures/slots-solid/package.json @@ -0,0 +1,9 @@ +{ + "name": "@astrojs/test-slots-solid", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*", + "@astrojs/renderer-solid": "workspace:*" + } +} diff --git a/test/fixtures/slots-solid/src/components/Counter.jsx b/test/fixtures/slots-solid/src/components/Counter.jsx index cbd8ccf2258f..6a585b8e3c4e 100644 --- a/test/fixtures/slots-solid/src/components/Counter.jsx +++ b/test/fixtures/slots-solid/src/components/Counter.jsx @@ -1,6 +1,7 @@ -import React, { useState } from 'react'; +import { createSignal } from 'solid-js'; export default function Counter({ children, count: initialCount, case: id }) { + const [count] = createSignal(0); return ( <>
diff --git a/test/fixtures/slots-svelte/package.json b/test/fixtures/slots-svelte/package.json new file mode 100644 index 000000000000..34ae9bda7c50 --- /dev/null +++ b/test/fixtures/slots-svelte/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-slots-svelte", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/slots-vue/package.json b/test/fixtures/slots-vue/package.json new file mode 100644 index 000000000000..f54232d52181 --- /dev/null +++ b/test/fixtures/slots-vue/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-slots-vue", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/solid-component/package.json b/test/fixtures/solid-component/package.json new file mode 100644 index 000000000000..c5b628d8a766 --- /dev/null +++ b/test/fixtures/solid-component/package.json @@ -0,0 +1,9 @@ +{ + "name": "@astrojs/test-solid-component", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*", + "@astrojs/renderer-solid": "workspace:*" + } +} diff --git a/test/fixtures/static build/package.json b/test/fixtures/static build/package.json index 7cf3a1792311..f64c74d95091 100644 --- a/test/fixtures/static build/package.json +++ b/test/fixtures/static build/package.json @@ -1,7 +1,8 @@ { "name": "@astrojs/test-static-build", - "version": "0.0.1", + "version": "0.0.0", "dependencies": { + "astro": "workspace:*", "@astrojs/test-static-build-pkg": "file:./pkg" } } diff --git a/test/fixtures/static-build-code-component/package.json b/test/fixtures/static-build-code-component/package.json new file mode 100644 index 000000000000..dafee44124b4 --- /dev/null +++ b/test/fixtures/static-build-code-component/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-static-build-code-component", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/static-build-frameworks/package.json b/test/fixtures/static-build-frameworks/package.json new file mode 100644 index 000000000000..19685720f32e --- /dev/null +++ b/test/fixtures/static-build-frameworks/package.json @@ -0,0 +1,9 @@ +{ + "name": "@astrojs/test-static-build-frameworks", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*", + "@astrojs/renderer-lit": "workspace:*" + } +} diff --git a/test/fixtures/static-build-page-url-format/package.json b/test/fixtures/static-build-page-url-format/package.json new file mode 100644 index 000000000000..6996f573bcae --- /dev/null +++ b/test/fixtures/static-build-page-url-format/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-static-build-page-url-format", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/svelte-component/package.json b/test/fixtures/svelte-component/package.json new file mode 100644 index 000000000000..c83c6f763f84 --- /dev/null +++ b/test/fixtures/svelte-component/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-svelte-component", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/vue-component/package.json b/test/fixtures/vue-component/package.json new file mode 100644 index 000000000000..1c5ed10925b7 --- /dev/null +++ b/test/fixtures/vue-component/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-vue-component", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/with-endpoint-routes/package.json b/test/fixtures/with-endpoint-routes/package.json new file mode 100644 index 000000000000..69f44344ec58 --- /dev/null +++ b/test/fixtures/with-endpoint-routes/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-with-endpoint-routes", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/with-subpath-no-trailing-slash/package.json b/test/fixtures/with-subpath-no-trailing-slash/package.json new file mode 100644 index 000000000000..99c058e7ec7d --- /dev/null +++ b/test/fixtures/with-subpath-no-trailing-slash/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-with-subpath-no-trailing-slash", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/with-subpath-trailing-slash/package.json b/test/fixtures/with-subpath-trailing-slash/package.json new file mode 100644 index 000000000000..9e89f62fb809 --- /dev/null +++ b/test/fixtures/with-subpath-trailing-slash/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-with-subpath-trailing-slash", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/without-site-config/package.json b/test/fixtures/without-site-config/package.json new file mode 100644 index 000000000000..2bc16758eec3 --- /dev/null +++ b/test/fixtures/without-site-config/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-without-site-config", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +} diff --git a/test/fixtures/without-subpath/package.json b/test/fixtures/without-subpath/package.json new file mode 100644 index 000000000000..c3e486838459 --- /dev/null +++ b/test/fixtures/without-subpath/package.json @@ -0,0 +1,8 @@ +{ + "name": "@astrojs/test-without-subpath", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +}