diff --git a/.changeset/young-impalas-boil.md b/.changeset/young-impalas-boil.md new file mode 100644 index 000000000..bfcb25107 --- /dev/null +++ b/.changeset/young-impalas-boil.md @@ -0,0 +1,26 @@ +--- +'@astrojs/cloudflare': patch +'@astrojs/turbolinks': patch +'@astrojs/partytown': patch +'@astrojs/alpinejs': patch +'@astrojs/prefetch': patch +'@astrojs/tailwind': patch +'@astrojs/markdoc': patch +'@astrojs/netlify': patch +'@astrojs/preact': patch +'@astrojs/svelte': patch +'@astrojs/vercel': patch +'@astrojs/react': patch +'@astrojs/solid-js': patch +'@astrojs/markdown-component': patch +'@astrojs/deno': patch +'@astrojs/node': patch +'@astrojs/lit': patch +'@astrojs/mdx': patch +'@astrojs/vue': patch +'@astrojs/markdown-remark': patch +'@astrojs/prism': patch +'@astrojs/rss': patch +--- + +Specify `"files"` field to only publish necessary files diff --git a/packages/astro-prism/package.json b/packages/astro-prism/package.json index acbb3dd7d..abf05dffb 100644 --- a/packages/astro-prism/package.json +++ b/packages/astro-prism/package.json @@ -23,6 +23,10 @@ "./Prism.astro": "./Prism.astro", "./dist/highlighter": "./dist/highlighter.js" }, + "files": [ + "dist", + "Prism.astro" + ], "keywords": [ "astro", "astro-component" diff --git a/packages/astro-rss/package.json b/packages/astro-rss/package.json index 52051b32d..4151647d0 100644 --- a/packages/astro-rss/package.json +++ b/packages/astro-rss/package.json @@ -17,6 +17,9 @@ ".": "./dist/index.js", "./package.json": "./package.json" }, + "files": [ + "dist" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/alpinejs/package.json b/packages/integrations/alpinejs/package.json index fcb61e915..bba68e333 100644 --- a/packages/integrations/alpinejs/package.json +++ b/packages/integrations/alpinejs/package.json @@ -24,6 +24,9 @@ ".": "./dist/index.js", "./package.json": "./package.json" }, + "files": [ + "dist" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json index 6b2d506c9..9eddb2f60 100644 --- a/packages/integrations/cloudflare/package.json +++ b/packages/integrations/cloudflare/package.json @@ -27,6 +27,10 @@ "./server.directory.js": "./dist/server.directory.js", "./package.json": "./package.json" }, + "files": [ + "dist", + "runtime.d.ts" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/deno/package.json b/packages/integrations/deno/package.json index 68da19493..e6c6f3ab0 100644 --- a/packages/integrations/deno/package.json +++ b/packages/integrations/deno/package.json @@ -23,6 +23,9 @@ "./__deno_imports.js": "./dist/__deno_imports.js", "./package.json": "./package.json" }, + "files": [ + "dist" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/image/.npmignore b/packages/integrations/image/.npmignore deleted file mode 100644 index 65e3ba2ed..000000000 --- a/packages/integrations/image/.npmignore +++ /dev/null @@ -1 +0,0 @@ -test/ diff --git a/packages/integrations/lit/package.json b/packages/integrations/lit/package.json index 596b6de5b..44f7626ec 100644 --- a/packages/integrations/lit/package.json +++ b/packages/integrations/lit/package.json @@ -27,6 +27,14 @@ "./hydration-support.js": "./hydration-support.js", "./package.json": "./package.json" }, + "files": [ + "dist", + "client-shim.js", + "client-shim.min.js", + "hydration-support.js", + "server.js", + "server-shim.js" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index 5eb65e0d4..b048ba2e9 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -26,6 +26,11 @@ "./experimental-assets-config": "./dist/experimental-assets-config.js", "./package.json": "./package.json" }, + "files": [ + "components", + "dist", + "template" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index 659e8b9a1..40d9d32c3 100644 --- a/packages/integrations/mdx/package.json +++ b/packages/integrations/mdx/package.json @@ -22,6 +22,10 @@ ".": "./dist/index.js", "./package.json": "./package.json" }, + "files": [ + "dist", + "template" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/netlify/.npmignore b/packages/integrations/netlify/.npmignore deleted file mode 100644 index 65e3ba2ed..000000000 --- a/packages/integrations/netlify/.npmignore +++ /dev/null @@ -1 +0,0 @@ -test/ diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json index b4c3cc72e..d30e44c90 100644 --- a/packages/integrations/netlify/package.json +++ b/packages/integrations/netlify/package.json @@ -25,6 +25,9 @@ "./netlify-edge-functions.js": "./dist/netlify-edge-functions.js", "./package.json": "./package.json" }, + "files": [ + "dist" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json index de72fb89c..152e281e8 100644 --- a/packages/integrations/node/package.json +++ b/packages/integrations/node/package.json @@ -23,6 +23,9 @@ "./preview.js": "./dist/preview.js", "./package.json": "./package.json" }, + "files": [ + "dist" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/partytown/package.json b/packages/integrations/partytown/package.json index 139c4e934..549730f9e 100644 --- a/packages/integrations/partytown/package.json +++ b/packages/integrations/partytown/package.json @@ -23,6 +23,9 @@ ".": "./dist/index.js", "./package.json": "./package.json" }, + "files": [ + "dist" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index 37598d18d..ccff0a95e 100644 --- a/packages/integrations/preact/package.json +++ b/packages/integrations/preact/package.json @@ -26,6 +26,9 @@ "./server.js": "./dist/server.js", "./package.json": "./package.json" }, + "files": [ + "dist" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/prefetch/package.json b/packages/integrations/prefetch/package.json index 178214ad9..7c7bc7ea6 100644 --- a/packages/integrations/prefetch/package.json +++ b/packages/integrations/prefetch/package.json @@ -23,6 +23,9 @@ "./client.js": "./dist/client.js", "./package.json": "./package.json" }, + "files": [ + "dist" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json index 318c4bc27..8947f6b16 100644 --- a/packages/integrations/react/package.json +++ b/packages/integrations/react/package.json @@ -28,6 +28,16 @@ "./package.json": "./package.json", "./jsx-runtime": "./jsx-runtime.js" }, + "files": [ + "dist", + "client.js", + "client-v17.js", + "context.js", + "jsx-runtime.js", + "server.js", + "server-v17.js", + "static-html.js" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json index 5adec5a2b..5d9a23698 100644 --- a/packages/integrations/solid/package.json +++ b/packages/integrations/solid/package.json @@ -26,6 +26,9 @@ "./server.js": "./dist/server.js", "./package.json": "./package.json" }, + "files": [ + "dist" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index 78d3a8f81..6abc3e9d6 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -27,6 +27,11 @@ "./server.js": "./server.js", "./package.json": "./package.json" }, + "files": [ + "dist", + "client.js", + "server.js" + ], "scripts": { "build": "astro-scripts build \"src/index.ts\" && astro-scripts build \"src/editor.cts\" --force-cjs --no-clean-dist && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\" && astro-scripts build \"src/editor.cts\" --force-cjs --no-clean-dist", diff --git a/packages/integrations/tailwind/package.json b/packages/integrations/tailwind/package.json index 876c5f9eb..43c76a5b6 100644 --- a/packages/integrations/tailwind/package.json +++ b/packages/integrations/tailwind/package.json @@ -22,6 +22,10 @@ "./base.css": "./base.css", "./package.json": "./package.json" }, + "files": [ + "dist", + "base.css" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/turbolinks/package.json b/packages/integrations/turbolinks/package.json index e888a5a47..d7505030c 100644 --- a/packages/integrations/turbolinks/package.json +++ b/packages/integrations/turbolinks/package.json @@ -23,6 +23,10 @@ "./client.js": "./client.js", "./package.json": "./package.json" }, + "files": [ + "dist", + "client.js" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index 0f5f7a9ea..d3dc5a6d8 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -40,6 +40,9 @@ ] } }, + "files": [ + "dist" + ], "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index a33671444..6de8c2ad2 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -27,6 +27,12 @@ "./server.js": "./server.js", "./package.json": "./package.json" }, + "files": [ + "dist", + "client.js", + "server.js", + "static-html.js" + ], "scripts": { "build": "astro-scripts build \"src/index.ts\" && astro-scripts build \"src/editor.cts\" --force-cjs --no-clean-dist && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\" && astro-scripts build \"src/editor.cts\" --force-cjs --no-clean-dist", diff --git a/packages/markdown/component/package.json b/packages/markdown/component/package.json index 2eee2c3dd..5cfcfdc7e 100644 --- a/packages/markdown/component/package.json +++ b/packages/markdown/component/package.json @@ -18,6 +18,9 @@ "astro": "./Markdown.astro" } }, + "files": [ + "Markdown.astro" + ], "scripts": { "test": "mocha --exit --timeout 20000" }, diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json index bf9d4262d..b4a0ae4ce 100644 --- a/packages/markdown/remark/package.json +++ b/packages/markdown/remark/package.json @@ -16,6 +16,9 @@ ".": "./dist/index.js", "./dist/internal.js": "./dist/internal.js" }, + "files": [ + "dist" + ], "scripts": { "prepublish": "pnpm build", "build": "astro-scripts build \"src/**/*.ts\" && tsc -p tsconfig.json",