diff options
author | 2022-03-08 15:46:11 -0600 | |
---|---|---|
committer | 2022-03-08 15:46:11 -0600 | |
commit | d08ddaf5b933033564e1312df49ace8364033f79 (patch) | |
tree | cd35b7f32146a0762fb1ede3eb4551288f574c80 /examples | |
parent | 2f7a4f8eaeac3e66fab64e24d05b803abf0d8804 (diff) | |
download | astro-d08ddaf5b933033564e1312df49ace8364033f79.tar.gz astro-d08ddaf5b933033564e1312df49ace8364033f79.tar.zst astro-d08ddaf5b933033564e1312df49ace8364033f79.zip |
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 <me@juanm04.com>
* 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 <me@juanm04.com>
Diffstat (limited to 'examples')
55 files changed, 114 insertions, 86 deletions
diff --git a/examples/blog-multiple-authors/.npmrc b/examples/blog-multiple-authors/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/blog-multiple-authors/.npmrc +++ b/examples/blog-multiple-authors/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index 8bd84b329..124600953 100644 --- a/examples/blog-multiple-authors/package.json +++ b/examples/blog-multiple-authors/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { + "@astrojs/renderer-preact": "^0.5.0", "astro": "^0.23.7", - "sass": "^1.49.8", - "@astrojs/renderer-preact": "^0.5.0" + "sass": "^1.49.8" } } diff --git a/examples/blog/.npmrc b/examples/blog/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/blog/.npmrc +++ b/examples/blog/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/component/.npmrc b/examples/component/.npmrc index 65922326b..ef83021af 100644 --- a/examples/component/.npmrc +++ b/examples/component/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index 72b9c72e0..6fb878f6e 100644 --- a/examples/component/demo/package.json +++ b/examples/component/demo/package.json @@ -9,6 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7" + "astro": "^0.23.7", + "@example/my-component": "workspace:*" } } diff --git a/examples/component/package.json b/examples/component/package.json index 605c2dd86..dc1c119cf 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -2,10 +2,6 @@ "name": "@example/component", "version": "0.0.1", "private": true, - "workspaces": [ - "demo", - "packages/*" - ], "scripts": { "start": "astro --project-root demo dev", "build": "astro --project-root demo build", diff --git a/examples/component/pnpm-workspace.yaml b/examples/component/pnpm-workspace.yaml new file mode 100644 index 000000000..4ad1ebffe --- /dev/null +++ b/examples/component/pnpm-workspace.yaml @@ -0,0 +1,3 @@ +packages: + - "packages/**/*" + - "demo" diff --git a/examples/docs/.npmrc b/examples/docs/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/docs/.npmrc +++ b/examples/docs/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/docs/package.json b/examples/docs/package.json index 951585c6b..620bf726f 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -9,11 +9,12 @@ "preview": "astro preview" }, "dependencies": { + "@docsearch/css": "^3.0.0", "@docsearch/react": "^1.0.0-alpha.28" }, "devDependencies": { - "astro": "^0.23.7", + "@astrojs/renderer-react": "^0.5.0", "@astrojs/renderer-preact": "^0.5.0", - "@astrojs/renderer-react": "^0.5.0" + "astro": "^0.23.7" } } diff --git a/examples/env-vars/.npmrc b/examples/env-vars/.npmrc index 65922326b..ef83021af 100644 --- a/examples/env-vars/.npmrc +++ b/examples/env-vars/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/fast-build/.npmrc b/examples/fast-build/.npmrc new file mode 100644 index 000000000..ef83021af --- /dev/null +++ b/examples/fast-build/.npmrc @@ -0,0 +1,2 @@ +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/fast-build/package.json b/examples/fast-build/package.json index c78e88be7..1259721d0 100644 --- a/examples/fast-build/package.json +++ b/examples/fast-build/package.json @@ -10,8 +10,10 @@ "preview": "astro preview" }, "devDependencies": { + "@astrojs/renderer-vue": "^0.4.0", + "@astrojs/renderer-preact": "^0.5.0", "astro": "^0.23.7", - "preact": "~10.6.5", + "sass": "^1.49.8", "unocss": "^0.15.5", "vite-imagetools": "^4.0.1", "@astrojs/renderer-vue": "^0.4.0" diff --git a/examples/fast-build/src/pages/index.astro b/examples/fast-build/src/pages/index.astro index 0b7e7ff21..1ae672da6 100644 --- a/examples/fast-build/src/pages/index.astro +++ b/examples/fast-build/src/pages/index.astro @@ -3,7 +3,7 @@ import imgUrl from '../images/penguin.jpg'; import grayscaleUrl from '../images/random.jpg?grayscale=true'; import Greeting from '../components/Greeting.vue'; import Counter from '../components/Counter.vue'; -import { Code } from 'astro/components'; +// import { Code } from 'astro/components'; import InlineHoisted from '../components/InlineHoisted.astro'; import ExternalHoisted from '../components/ExternalHoisted.astro'; --- @@ -48,9 +48,9 @@ import ExternalHoisted from '../components/ExternalHoisted.astro'; <section> <h1>Astro components</h1> - <Code lang="css" code={`body { + <!-- <Code lang="css" code={`body { color: salmon; -}`} /> +}`} /> --> </section> <section> diff --git a/examples/framework-alpine/.npmrc b/examples/framework-alpine/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/framework-alpine/.npmrc +++ b/examples/framework-alpine/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/framework-lit/.npmrc b/examples/framework-lit/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/framework-lit/.npmrc +++ b/examples/framework-lit/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/framework-multiple/.npmrc b/examples/framework-multiple/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/framework-multiple/.npmrc +++ b/examples/framework-multiple/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index a29274c81..5b3c53da5 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -9,11 +9,12 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/renderer-solid": "^0.4.0", - "astro": "^0.23.7", + "@astrojs/renderer-lit": "^0.4.0", "@astrojs/renderer-preact": "^0.5.0", "@astrojs/renderer-react": "^0.5.0", - "@astrojs/renderer-svelte": "^0.5.1", - "@astrojs/renderer-vue": "^0.4.0" + "@astrojs/renderer-solid": "^0.4.0", + "@astrojs/renderer-svelte": "^0.4.0", + "@astrojs/renderer-vue": "^0.4.0", + "astro": "^0.23.7" } } diff --git a/examples/framework-preact/.npmrc b/examples/framework-preact/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/framework-preact/.npmrc +++ b/examples/framework-preact/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 1c0bd497f..1fa0b2a64 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7", - "@astrojs/renderer-preact": "^0.5.0" + "@astrojs/renderer-preact": "^0.5.0", + "astro": "^0.23.7" } } diff --git a/examples/framework-react/.npmrc b/examples/framework-react/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/framework-react/.npmrc +++ b/examples/framework-react/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index eccae118f..4d1762a87 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7", - "@astrojs/renderer-react": "^0.5.0" + "@astrojs/renderer-react": "^0.5.0", + "astro": "^0.23.7" } } diff --git a/examples/framework-solid/.npmrc b/examples/framework-solid/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/framework-solid/.npmrc +++ b/examples/framework-solid/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/framework-svelte/.npmrc b/examples/framework-svelte/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/framework-svelte/.npmrc +++ b/examples/framework-svelte/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 619469f16..7dd4d12e2 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7", - "@astrojs/renderer-svelte": "^0.5.1" + "@astrojs/renderer-svelte": "^0.4.0", + "astro": "^0.23.7" } } diff --git a/examples/framework-vue/.npmrc b/examples/framework-vue/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/framework-vue/.npmrc +++ b/examples/framework-vue/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index cacb3ff78..8662c303f 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7", - "@astrojs/renderer-vue": "^0.4.0" + "@astrojs/renderer-vue": "^0.4.0", + "astro": "^0.23.7" } } diff --git a/examples/minimal/.npmrc b/examples/minimal/.npmrc index 65922326b..ef83021af 100644 --- a/examples/minimal/.npmrc +++ b/examples/minimal/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/non-html-pages/.npmrc b/examples/non-html-pages/.npmrc index 65922326b..ef83021af 100644 --- a/examples/non-html-pages/.npmrc +++ b/examples/non-html-pages/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/portfolio-svelte/.gitignore b/examples/portfolio-svelte/.gitignore index a3fe57347..c82467453 100644 --- a/examples/portfolio-svelte/.gitignore +++ b/examples/portfolio-svelte/.gitignore @@ -15,4 +15,3 @@ yarn-error.log* # macOS-specific files .DS_Store -pnpm-lock.yaml diff --git a/examples/portfolio-svelte/.npmrc b/examples/portfolio-svelte/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/portfolio-svelte/.npmrc +++ b/examples/portfolio-svelte/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/portfolio-svelte/package.json b/examples/portfolio-svelte/package.json index 8d8af9400..b9c83a2e8 100644 --- a/examples/portfolio-svelte/package.json +++ b/examples/portfolio-svelte/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7", - "@astrojs/renderer-svelte": "^0.5.1" + "@astrojs/renderer-svelte": "^0.4.0", + "astro": "^0.23.7" } } diff --git a/examples/portfolio/.npmrc b/examples/portfolio/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/portfolio/.npmrc +++ b/examples/portfolio/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index ad2ce075e..744cfaddd 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7", - "@astrojs/renderer-preact": "^0.5.0" + "@astrojs/renderer-preact": "^0.5.0", + "astro": "^0.23.7" } } diff --git a/examples/ssr/.npmrc b/examples/ssr/.npmrc new file mode 100644 index 000000000..ef83021af --- /dev/null +++ b/examples/ssr/.npmrc @@ -0,0 +1,2 @@ +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/ssr/build.mjs b/examples/ssr/build.mjs index fc0a37afb..168c3c55f 100644 --- a/examples/ssr/build.mjs +++ b/examples/ssr/build.mjs @@ -4,7 +4,7 @@ const api = execa('npm', ['run', 'dev-api']); api.stdout.pipe(process.stdout); api.stderr.pipe(process.stderr); -const build = execa('yarn', ['astro', 'build', '--experimental-ssr']); +const build = execa('pnpm', ['astro', 'build', '--experimental-ssr']); build.stdout.pipe(process.stdout); build.stderr.pipe(process.stderr); await build; diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 432e25fe2..9da47f6a3 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -6,11 +6,12 @@ "dev-api": "node server/dev-api.mjs", "dev": "npm run dev-api & astro dev --experimental-ssr", "start": "astro dev", - "build": "echo 'Run yarn build-ssr instead'", + "build": "echo 'Run pnpm run build-ssr instead'", "build-ssr": "node build.mjs", "server": "node server/server.mjs" }, "devDependencies": { + "@astrojs/renderer-svelte": "^0.4.0", "astro": "^0.23.7", "unocss": "^0.15.5", "vite-imagetools": "^4.0.1", diff --git a/examples/starter/.npmrc b/examples/starter/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/starter/.npmrc +++ b/examples/starter/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/starter/astro.config.mjs b/examples/starter/astro.config.mjs index 7c835f30a..32ef04fb7 100644 --- a/examples/starter/astro.config.mjs +++ b/examples/starter/astro.config.mjs @@ -10,6 +10,6 @@ export default /** @type {import('astro').AstroUserConfig} */ ( { // Set "renderers" to "[]" to disable all default, builtin component support. - // renderers: [], + renderers: [], } ); diff --git a/examples/subpath/.npmrc b/examples/subpath/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/subpath/.npmrc +++ b/examples/subpath/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/with-markdown-plugins/.npmrc b/examples/with-markdown-plugins/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/with-markdown-plugins/.npmrc +++ b/examples/with-markdown-plugins/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/with-markdown-plugins/astro.config.mjs b/examples/with-markdown-plugins/astro.config.mjs index 908b64cb0..c25530d6a 100644 --- a/examples/with-markdown-plugins/astro.config.mjs +++ b/examples/with-markdown-plugins/astro.config.mjs @@ -11,6 +11,7 @@ import addClasses from './add-classes.mjs'; // @ts-check export default /** @type {import('astro').AstroUserConfig} */ ({ // Enable Custom Markdown options, plugins, etc. + renderers: [], markdownOptions: { render: [ astroRemark, diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index ebf90ac6b..a275c3612 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -9,6 +9,7 @@ "preview": "astro preview" }, "devDependencies": { + "@astrojs/markdown-remark": "^0.6.1", "astro": "^0.23.7", "hast-util-select": "5.0.1", "rehype-autolink-headings": "^6.1.0", diff --git a/examples/with-markdown-shiki/.npmrc b/examples/with-markdown-shiki/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/with-markdown-shiki/.npmrc +++ b/examples/with-markdown-shiki/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/with-markdown-shiki/astro.config.mjs b/examples/with-markdown-shiki/astro.config.mjs index 4598f96b4..59502b3a8 100644 --- a/examples/with-markdown-shiki/astro.config.mjs +++ b/examples/with-markdown-shiki/astro.config.mjs @@ -10,6 +10,7 @@ import astroRemark from '@astrojs/markdown-remark'; // @ts-check export default /** @type {import('astro').AstroUserConfig} */ ({ // Enable Custom Markdown options, plugins, etc. + renderers: [], markdownOptions: { render: [ astroRemark, diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index a4d8d0bf6..9ec931950 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -9,6 +9,7 @@ "preview": "astro preview" }, "devDependencies": { + "@astrojs/markdown-remark": "^0.6.1", "astro": "^0.23.7" } } diff --git a/examples/with-markdown/.npmrc b/examples/with-markdown/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/with-markdown/.npmrc +++ b/examples/with-markdown/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/with-markdown/astro.config.mjs b/examples/with-markdown/astro.config.mjs index 7c835f30a..7de07db07 100644 --- a/examples/with-markdown/astro.config.mjs +++ b/examples/with-markdown/astro.config.mjs @@ -9,7 +9,11 @@ // @ts-check export default /** @type {import('astro').AstroUserConfig} */ ( { - // Set "renderers" to "[]" to disable all default, builtin component support. - // renderers: [], + renderers: [ + "@astrojs/renderer-preact", + "@astrojs/renderer-react", + "@astrojs/renderer-svelte", + "@astrojs/renderer-vue", + ], } ); diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index 2e30af40c..144e8d6de 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -9,6 +9,11 @@ "preview": "astro preview" }, "devDependencies": { + "@astrojs/renderer-preact": "^0.5.0", + "@astrojs/renderer-react": "^0.5.0", + "@astrojs/renderer-svelte": "^0.4.0", + "@astrojs/renderer-vue": "^0.4.0", + "@astrojs/markdown-remark": "^0.6.1", "astro": "^0.23.7" } } diff --git a/examples/with-nanostores/.npmrc b/examples/with-nanostores/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/with-nanostores/.npmrc +++ b/examples/with-nanostores/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index b3a71128a..6777c58d1 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -16,6 +16,10 @@ "solid-nanostores": "0.0.6" }, "devDependencies": { + "@astrojs/renderer-react": "^0.5.0", + "@astrojs/renderer-svelte": "^0.4.0", + "@astrojs/renderer-vue": "^0.4.0", + "@astrojs/renderer-preact": "^0.5.0", "@astrojs/renderer-solid": "^0.4.0", "astro": "^0.23.7", "@astrojs/renderer-preact": "^0.5.0", diff --git a/examples/with-tailwindcss/.npmrc b/examples/with-tailwindcss/.npmrc index 0cc653b2c..ef83021af 100644 --- a/examples/with-tailwindcss/.npmrc +++ b/examples/with-tailwindcss/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true
\ No newline at end of file +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 3922d8eb9..a34e085f3 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -9,6 +9,7 @@ "preview": "astro preview" }, "devDependencies": { + "@astrojs/renderer-preact": "^0.5.0", "astro": "^0.23.7", "autoprefixer": "^10.4.0", "tailwindcss": "^3.0.5", diff --git a/examples/with-vite-plugin-pwa/.npmrc b/examples/with-vite-plugin-pwa/.npmrc index 65922326b..ef83021af 100644 --- a/examples/with-vite-plugin-pwa/.npmrc +++ b/examples/with-vite-plugin-pwa/.npmrc @@ -1,2 +1,2 @@ -## force pnpm to hoist -shamefully-hoist = true +# Expose Astro dependencies for `pnpm` users +shamefully-hoist=true diff --git a/examples/with-vite-plugin-pwa/astro.config.mjs b/examples/with-vite-plugin-pwa/astro.config.mjs index 05dac6602..a14546663 100644 --- a/examples/with-vite-plugin-pwa/astro.config.mjs +++ b/examples/with-vite-plugin-pwa/astro.config.mjs @@ -10,6 +10,7 @@ import { VitePWA } from 'vite-plugin-pwa'; // @ts-check export default /** @type {import('astro').AstroUserConfig} */ ({ + renderers: [], vite: { plugins: [VitePWA()], }, diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 8c779d4d1..9324eef67 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -10,6 +10,7 @@ }, "devDependencies": { "astro": "^0.23.7", - "vite-plugin-pwa": "0.11.5" + "vite-plugin-pwa": "0.11.11", + "workbox-window": "^6.5.0" } } |