aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations')
-rw-r--r--packages/integrations/cloudflare/package.json3
-rw-r--r--packages/integrations/image/package.json17
-rw-r--r--packages/integrations/lit/package.json3
-rw-r--r--packages/integrations/mdx/package.json6
-rw-r--r--packages/integrations/mdx/test/fixtures/mdx-namespace/package.json6
-rw-r--r--packages/integrations/mdx/test/fixtures/mdx-page/package.json4
-rw-r--r--packages/integrations/mdx/test/fixtures/mdx-plus-react/package.json6
-rw-r--r--packages/integrations/netlify/package.json6
-rw-r--r--packages/integrations/node/package.json2
-rw-r--r--packages/integrations/preact/src/index.ts19
-rw-r--r--packages/integrations/prefetch/package.json1
-rw-r--r--packages/integrations/prefetch/playwright.config.js5
-rw-r--r--packages/integrations/sitemap/package.json2
-rw-r--r--packages/integrations/svelte/package.json6
-rw-r--r--packages/integrations/tailwind/package.json3
-rw-r--r--packages/integrations/vercel/package.json4
-rw-r--r--packages/integrations/vue/package.json3
17 files changed, 66 insertions, 30 deletions
diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json
index 1b018167d..b3745557c 100644
--- a/packages/integrations/cloudflare/package.json
+++ b/packages/integrations/cloudflare/package.json
@@ -35,6 +35,9 @@
"devDependencies": {
"astro": "workspace:*",
"astro-scripts": "workspace:*",
+ "chai": "^4.3.6",
+ "cheerio": "^1.0.0-rc.11",
+ "mocha": "^9.2.2",
"wrangler": "^2.0.23"
}
}
diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json
index 62d302003..e1db1fe53 100644
--- a/packages/integrations/image/package.json
+++ b/packages/integrations/image/package.json
@@ -45,14 +45,29 @@
"@altano/tiny-async-pool": "^1.0.2",
"image-size": "^1.0.2",
"magic-string": "^0.25.9",
- "mime": "^3.0.0"
+ "mime": "^3.0.0",
+ "slash": "^4.0.0"
},
"devDependencies": {
+ "@types/mime": "^2.0.3",
"@types/sharp": "^0.30.5",
"astro": "workspace:*",
"astro-scripts": "workspace:*",
+ "chai": "^4.3.6",
+ "cheerio": "^1.0.0-rc.11",
"kleur": "^4.1.4",
+ "mocha": "^9.2.2",
"rollup-plugin-copy": "^3.4.0",
+ "sharp": "^0.31.0",
+ "vite": "^3.0.0",
"web-streams-polyfill": "^3.2.1"
+ },
+ "peerDependencies": {
+ "sharp": ">=0.31.0"
+ },
+ "peerDependenciesMeta": {
+ "sharp": {
+ "optional": true
+ }
}
}
diff --git a/packages/integrations/lit/package.json b/packages/integrations/lit/package.json
index b2f3bca73..9781094c7 100644
--- a/packages/integrations/lit/package.json
+++ b/packages/integrations/lit/package.json
@@ -38,7 +38,10 @@
"devDependencies": {
"astro": "workspace:*",
"astro-scripts": "workspace:*",
+ "chai": "^4.3.6",
"cheerio": "^1.0.0-rc.11",
+ "lit": "^2.2.5",
+ "mocha": "^9.2.2",
"sass": "^1.52.2"
},
"peerDependencies": {
diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json
index 840f9d621..6109cdc64 100644
--- a/packages/integrations/mdx/package.json
+++ b/packages/integrations/mdx/package.json
@@ -49,17 +49,21 @@
"devDependencies": {
"@types/chai": "^4.3.1",
"@types/estree": "^1.0.0",
+ "@types/github-slugger": "^1.3.0",
"@types/mocha": "^9.1.1",
"@types/yargs-parser": "^21.0.0",
"astro": "workspace:*",
"astro-scripts": "workspace:*",
"chai": "^4.3.6",
+ "cheerio": "^1.0.0-rc.11",
"linkedom": "^0.14.12",
+ "mdast-util-mdx": "^2.0.0",
"mdast-util-to-string": "^3.1.0",
"mocha": "^9.2.2",
"reading-time": "^1.5.0",
"remark-shiki-twoslash": "^3.1.0",
- "remark-toc": "^8.0.1"
+ "remark-toc": "^8.0.1",
+ "vite": "^3.0.0"
},
"engines": {
"node": "^14.18.0 || >=16.12.0"
diff --git a/packages/integrations/mdx/test/fixtures/mdx-namespace/package.json b/packages/integrations/mdx/test/fixtures/mdx-namespace/package.json
index 7917f372d..68a482c21 100644
--- a/packages/integrations/mdx/test/fixtures/mdx-namespace/package.json
+++ b/packages/integrations/mdx/test/fixtures/mdx-namespace/package.json
@@ -1,8 +1,10 @@
{
"name": "@test/mdx-namespace",
"dependencies": {
- "astro": "workspace:*",
"@astrojs/mdx": "workspace:*",
- "@astrojs/react": "workspace:*"
+ "@astrojs/react": "workspace:*",
+ "astro": "workspace:*",
+ "react": "^18.2.0",
+ "react-dom": "^18.1.0"
}
}
diff --git a/packages/integrations/mdx/test/fixtures/mdx-page/package.json b/packages/integrations/mdx/test/fixtures/mdx-page/package.json
index c8f3217b3..7ff215df1 100644
--- a/packages/integrations/mdx/test/fixtures/mdx-page/package.json
+++ b/packages/integrations/mdx/test/fixtures/mdx-page/package.json
@@ -1,7 +1,9 @@
{
"name": "@test/mdx-page",
"dependencies": {
+ "@astrojs/mdx": "workspace:*",
"astro": "workspace:*",
- "@astrojs/mdx": "workspace:*"
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
}
}
diff --git a/packages/integrations/mdx/test/fixtures/mdx-plus-react/package.json b/packages/integrations/mdx/test/fixtures/mdx-plus-react/package.json
index 982f4c685..a4c8bb5f4 100644
--- a/packages/integrations/mdx/test/fixtures/mdx-plus-react/package.json
+++ b/packages/integrations/mdx/test/fixtures/mdx-plus-react/package.json
@@ -1,8 +1,10 @@
{
"name": "@test/mdx-plus-react",
"dependencies": {
- "astro": "workspace:*",
"@astrojs/mdx": "workspace:*",
- "@astrojs/react": "workspace:*"
+ "@astrojs/react": "workspace:*",
+ "astro": "workspace:*",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
}
}
diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json
index 23d144716..3818cc3e8 100644
--- a/packages/integrations/netlify/package.json
+++ b/packages/integrations/netlify/package.json
@@ -42,6 +42,10 @@
"@netlify/functions": "^1.0.0",
"@types/node": "^14.18.20",
"astro": "workspace:*",
- "astro-scripts": "workspace:*"
+ "astro-scripts": "workspace:*",
+ "chai": "^4.3.6",
+ "cheerio": "^1.0.0-rc.11",
+ "mocha": "^9.2.2",
+ "vite": "^3.0.0"
}
}
diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json
index 20bd2a32a..490384e27 100644
--- a/packages/integrations/node/package.json
+++ b/packages/integrations/node/package.json
@@ -34,6 +34,8 @@
"devDependencies": {
"astro": "workspace:*",
"astro-scripts": "workspace:*",
+ "chai": "^4.3.6",
+ "mocha": "^9.2.2",
"node-mocks-http": "^1.11.0"
}
}
diff --git a/packages/integrations/preact/src/index.ts b/packages/integrations/preact/src/index.ts
index 88c603751..3a7a99856 100644
--- a/packages/integrations/preact/src/index.ts
+++ b/packages/integrations/preact/src/index.ts
@@ -52,17 +52,9 @@ function getCompatRenderer(development: boolean): AstroRenderer {
function getViteConfiguration(compat?: boolean): ViteUserConfig {
const viteConfig: ViteUserConfig = {
optimizeDeps: {
- include: [
- '@astrojs/preact/client.js',
- 'preact',
- 'preact/jsx-runtime',
- 'preact-render-to-string',
- ],
+ include: ['@astrojs/preact/client.js', 'preact', 'preact/jsx-runtime'],
exclude: ['@astrojs/preact/server.js'],
},
- ssr: {
- external: ['preact-render-to-string'],
- },
};
if (compat) {
@@ -81,12 +73,9 @@ function getViteConfiguration(compat?: boolean): ViteUserConfig {
dedupe: ['preact/compat', 'preact'],
};
// noExternal React entrypoints to be bundled, resolved, and aliased by Vite
- viteConfig.ssr!.noExternal = [
- 'react',
- 'react-dom',
- 'react-dom/test-utils',
- 'react/jsx-runtime',
- ];
+ viteConfig.ssr = {
+ noExternal: ['react', 'react-dom', 'react-dom/test-utils', 'react/jsx-runtime'],
+ };
}
return viteConfig;
diff --git a/packages/integrations/prefetch/package.json b/packages/integrations/prefetch/package.json
index 5575b3cd2..c15eb5eda 100644
--- a/packages/integrations/prefetch/package.json
+++ b/packages/integrations/prefetch/package.json
@@ -29,6 +29,7 @@
"test:match": "playwright test -g"
},
"devDependencies": {
+ "@playwright/test": "^1.26.0",
"@types/chai": "^4.3.1",
"@types/chai-as-promised": "^7.1.5",
"@types/mocha": "^9.1.1",
diff --git a/packages/integrations/prefetch/playwright.config.js b/packages/integrations/prefetch/playwright.config.js
index c8353201f..d9600393e 100644
--- a/packages/integrations/prefetch/playwright.config.js
+++ b/packages/integrations/prefetch/playwright.config.js
@@ -1,4 +1,7 @@
-import { devices } from '@playwright/test';
+// NOTE: Prefetch tests fail with `TypeError: process.stdout.clearLine is not a function`
+// for some reason. This comes from Vite, and is conditionally called based on `isTTY`.
+// We set it to false here to skip this odd behavior.
+process.stdout.isTTY = false;
const config = {
testMatch: 'test/*.test.js',
diff --git a/packages/integrations/sitemap/package.json b/packages/integrations/sitemap/package.json
index fa66a1189..a55425b2f 100644
--- a/packages/integrations/sitemap/package.json
+++ b/packages/integrations/sitemap/package.json
@@ -39,6 +39,8 @@
"devDependencies": {
"astro": "workspace:*",
"astro-scripts": "workspace:*",
+ "chai": "^4.3.6",
+ "mocha": "^9.2.2",
"xml2js": "0.4.23"
}
}
diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json
index 2d8fc9964..ed8bf4ebd 100644
--- a/packages/integrations/svelte/package.json
+++ b/packages/integrations/svelte/package.json
@@ -36,13 +36,13 @@
"@sveltejs/vite-plugin-svelte": "^1.0.1",
"postcss-load-config": "^3.1.4",
"svelte-preprocess": "^4.10.7",
- "svelte2tsx": "^0.5.11",
- "vite": "^3.0.0"
+ "svelte2tsx": "^0.5.11"
},
"devDependencies": {
"astro": "workspace:*",
"astro-scripts": "workspace:*",
- "svelte": "^3.48.0"
+ "svelte": "^3.48.0",
+ "vite": "^3.0.0"
},
"peerDependencies": {
"svelte": "^3.46.4"
diff --git a/packages/integrations/tailwind/package.json b/packages/integrations/tailwind/package.json
index 7ed14a1e3..6b2a6cdc3 100644
--- a/packages/integrations/tailwind/package.json
+++ b/packages/integrations/tailwind/package.json
@@ -34,7 +34,8 @@
},
"devDependencies": {
"astro": "workspace:*",
- "astro-scripts": "workspace:*"
+ "astro-scripts": "workspace:*",
+ "tailwindcss": "^3.0.24"
},
"peerDependencies": {
"tailwindcss": "^3.0.24"
diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json
index 72a05c0dd..b1323f360 100644
--- a/packages/integrations/vercel/package.json
+++ b/packages/integrations/vercel/package.json
@@ -49,6 +49,8 @@
},
"devDependencies": {
"astro": "workspace:*",
- "astro-scripts": "workspace:*"
+ "astro-scripts": "workspace:*",
+ "chai": "^4.3.6",
+ "mocha": "^9.2.2"
}
}
diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json
index 283f029f4..efb18ca12 100644
--- a/packages/integrations/vue/package.json
+++ b/packages/integrations/vue/package.json
@@ -34,11 +34,12 @@
},
"dependencies": {
"@vitejs/plugin-vue": "^3.0.0",
- "vite": "^3.0.0"
+ "@vue/compiler-sfc": "^3.2.39"
},
"devDependencies": {
"astro": "workspace:*",
"astro-scripts": "workspace:*",
+ "vite": "^3.0.0",
"vue": "^3.2.37"
},
"peerDependencies": {