diff --git a/.changeset/three-humans-promise.md b/.changeset/three-humans-promise.md new file mode 100644 index 0000000000..1d1e767562 --- /dev/null +++ b/.changeset/three-humans-promise.md @@ -0,0 +1,5 @@ +--- +'@astrojs/tailwind': patch +--- + +Update README to reference a `.cjs` config file diff --git a/examples/basics/package.json b/examples/basics/package.json index d1a965d98b..5e9de1787d 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -1,5 +1,6 @@ { "name": "@example/basics", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/blog/package.json b/examples/blog/package.json index c7996fdc9f..33dcf7729d 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -1,5 +1,6 @@ { "name": "@example/blog", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/component/demo/astro.config.mjs b/examples/component/demo/astro.config.mjs new file mode 100644 index 0000000000..2d73a28076 --- /dev/null +++ b/examples/component/demo/astro.config.mjs @@ -0,0 +1,10 @@ +import { defineConfig } from 'astro/config'; + +// https://astro.build/config +export default defineConfig({ + vite: { + ssr: { + noExternal: ['@example/my-component'], + }, + }, +}); diff --git a/examples/docs/package.json b/examples/docs/package.json index 9c43721ce2..e7ff436043 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -1,5 +1,6 @@ { "name": "@example/docs", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 4d410c7abc..79b43df7a5 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-alpine", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index a1137897de..25519ada2a 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-lit", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 5b486a7465..50c1d4e107 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-multiple", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 3c3617deeb..64c04c4021 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-preact", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index d57aa2a3af..7759a64e07 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-react", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index ea28a6d2ed..baa5090dd0 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-solid", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 384f7f47b6..0d9bae2eb1 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-svelte", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index e24e310400..d6a4c41aa0 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-vue", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 6ff0cf07c5..5e6a913d39 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -1,5 +1,6 @@ { "name": "@example/minimal", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index b163918bc3..d9158e8529 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -1,5 +1,6 @@ { "name": "@example/non-html-pages", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 29d48b1b5c..2f20e3a613 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -1,5 +1,6 @@ { "name": "@example/portfolio", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 2c82596b9a..7a52d26dbe 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -1,5 +1,6 @@ { "name": "@example/ssr", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index a483980752..3c5a1c3750 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -1,5 +1,6 @@ { "name": "@example/with-markdown-plugins", + "type": "module", "version": "0.0.2", "private": true, "scripts": { diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index 09e16b1353..f8def392b5 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -1,5 +1,6 @@ { "name": "@example/with-markdown-shiki", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 7f81724dc2..bd1918693a 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -1,5 +1,6 @@ { "name": "@example/with-mdx", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 3531af87f6..106c4c46d3 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -1,5 +1,6 @@ { "name": "@example/with-nanostores", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index fae43e7e2a..3c174fabbb 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -1,5 +1,6 @@ { "name": "@example/with-tailwindcss", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 68b85453a7..36adf3673b 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -1,5 +1,6 @@ { "name": "@example/with-vite-plugin-pwa", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 67d2d8274b..362971bf70 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -1,7 +1,7 @@ { "name": "@example/with-vitest", - "version": "0.0.1", "type": "module", + "version": "0.0.1", "private": true, "scripts": { "dev": "astro dev", diff --git a/packages/integrations/tailwind/README.md b/packages/integrations/tailwind/README.md index 9eaf954527..6d118a79c0 100644 --- a/packages/integrations/tailwind/README.md +++ b/packages/integrations/tailwind/README.md @@ -93,7 +93,7 @@ import tailwind from '@astrojs/tailwind'; export default { integrations: [tailwind({ // Example: Provide a custom path to a Tailwind config file - config: { path: './custom-config.js' }, + config: { path: './custom-config.cjs' }, })], } ```