Skip to content

Commit 826e028

Browse files
authored
Add files field to packages (#7104)
1 parent 2994bc5 commit 826e028

25 files changed

Lines changed: 116 additions & 2 deletions

File tree

.changeset/young-impalas-boil.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
'@astrojs/cloudflare': patch
3+
'@astrojs/turbolinks': patch
4+
'@astrojs/partytown': patch
5+
'@astrojs/alpinejs': patch
6+
'@astrojs/prefetch': patch
7+
'@astrojs/tailwind': patch
8+
'@astrojs/markdoc': patch
9+
'@astrojs/netlify': patch
10+
'@astrojs/preact': patch
11+
'@astrojs/svelte': patch
12+
'@astrojs/vercel': patch
13+
'@astrojs/react': patch
14+
'@astrojs/solid-js': patch
15+
'@astrojs/markdown-component': patch
16+
'@astrojs/deno': patch
17+
'@astrojs/node': patch
18+
'@astrojs/lit': patch
19+
'@astrojs/mdx': patch
20+
'@astrojs/vue': patch
21+
'@astrojs/markdown-remark': patch
22+
'@astrojs/prism': patch
23+
'@astrojs/rss': patch
24+
---
25+
26+
Specify `"files"` field to only publish necessary files

packages/astro-prism/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"./Prism.astro": "./Prism.astro",
2424
"./dist/highlighter": "./dist/highlighter.js"
2525
},
26+
"files": [
27+
"dist",
28+
"Prism.astro"
29+
],
2630
"keywords": [
2731
"astro",
2832
"astro-component"

packages/astro-rss/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
".": "./dist/index.js",
1818
"./package.json": "./package.json"
1919
},
20+
"files": [
21+
"dist"
22+
],
2023
"scripts": {
2124
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
2225
"build:ci": "astro-scripts build \"src/**/*.ts\"",

packages/integrations/alpinejs/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
".": "./dist/index.js",
2525
"./package.json": "./package.json"
2626
},
27+
"files": [
28+
"dist"
29+
],
2730
"scripts": {
2831
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
2932
"build:ci": "astro-scripts build \"src/**/*.ts\"",

packages/integrations/cloudflare/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
"./server.directory.js": "./dist/server.directory.js",
2828
"./package.json": "./package.json"
2929
},
30+
"files": [
31+
"dist",
32+
"runtime.d.ts"
33+
],
3034
"scripts": {
3135
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
3236
"build:ci": "astro-scripts build \"src/**/*.ts\"",

packages/integrations/deno/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"./__deno_imports.js": "./dist/__deno_imports.js",
2424
"./package.json": "./package.json"
2525
},
26+
"files": [
27+
"dist"
28+
],
2629
"scripts": {
2730
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
2831
"build:ci": "astro-scripts build \"src/**/*.ts\"",

packages/integrations/image/.npmignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/integrations/lit/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@
2727
"./hydration-support.js": "./hydration-support.js",
2828
"./package.json": "./package.json"
2929
},
30+
"files": [
31+
"dist",
32+
"client-shim.js",
33+
"client-shim.min.js",
34+
"hydration-support.js",
35+
"server.js",
36+
"server-shim.js"
37+
],
3038
"scripts": {
3139
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
3240
"build:ci": "astro-scripts build \"src/**/*.ts\"",

packages/integrations/markdoc/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
"./experimental-assets-config": "./dist/experimental-assets-config.js",
2727
"./package.json": "./package.json"
2828
},
29+
"files": [
30+
"components",
31+
"dist",
32+
"template"
33+
],
2934
"scripts": {
3035
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
3136
"build:ci": "astro-scripts build \"src/**/*.ts\"",

packages/integrations/mdx/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
".": "./dist/index.js",
2323
"./package.json": "./package.json"
2424
},
25+
"files": [
26+
"dist",
27+
"template"
28+
],
2529
"scripts": {
2630
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
2731
"build:ci": "astro-scripts build \"src/**/*.ts\"",

0 commit comments

Comments
 (0)