mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Add files field to packages (#7104)
This commit is contained in:
parent
2994bc52d3
commit
826e028900
25 changed files with 116 additions and 2 deletions
26
.changeset/young-impalas-boil.md
Normal file
26
.changeset/young-impalas-boil.md
Normal file
|
@ -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
|
|
@ -23,6 +23,10 @@
|
|||
"./Prism.astro": "./Prism.astro",
|
||||
"./dist/highlighter": "./dist/highlighter.js"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"Prism.astro"
|
||||
],
|
||||
"keywords": [
|
||||
"astro",
|
||||
"astro-component"
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
test/
|
|
@ -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\"",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
test/
|
|
@ -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\"",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -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\"",
|
||||
|
|
|
@ -40,6 +40,9 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
|
||||
"build:ci": "astro-scripts build \"src/**/*.ts\"",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
"astro": "./Markdown.astro"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"Markdown.astro"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "mocha --exit --timeout 20000"
|
||||
},
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue