Skip to content

Commit

Permalink
build: Switch from npmignore to files field (#9991)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Jan 2, 2024
1 parent 9866412 commit ff95fd5
Show file tree
Hide file tree
Showing 40 changed files with 174 additions and 84 deletions.
9 changes: 0 additions & 9 deletions .npmignore

This file was deleted.

4 changes: 0 additions & 4 deletions packages/angular/.npmignore

This file was deleted.

10 changes: 0 additions & 10 deletions packages/astro/.npmignore

This file was deleted.

6 changes: 6 additions & 0 deletions packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"node": ">=18.14.1"
},
"type": "module",
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.client.js",
"module": "build/esm/index.server.js",
"browser": "build/esm/index.client.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/npm/cjs/index.js",
"module": "build/npm/esm/index.js",
"types": "build/npm/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/esm/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
3 changes: 0 additions & 3 deletions packages/ember/.npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Disable rules of .npmignore in workspace root for this package
!*

# compiled output
/dist/
/tmp/
Expand Down
2 changes: 0 additions & 2 deletions packages/eslint-config-sdk/.npmignore

This file was deleted.

3 changes: 3 additions & 0 deletions packages/eslint-config-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"engines": {
"node": ">=8"
},
"files": [
"src"
],
"main": "src/index.js",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 0 additions & 2 deletions packages/eslint-plugin-sdk/.npmignore

This file was deleted.

1 change: 1 addition & 0 deletions packages/eslint-plugin-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"engines": {
"node": ">=8"
},
"files": ["src"],
"main": "src/index.js",
"publishConfig": {
"access": "public"
Expand Down
6 changes: 6 additions & 0 deletions packages/feedback/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=12"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/npm/cjs/index.js",
"module": "build/npm/esm/index.js",
"types": "build/npm/types/index.d.ts",
Expand Down
15 changes: 0 additions & 15 deletions packages/gatsby/.npmignore

This file was deleted.

10 changes: 10 additions & 0 deletions packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8",
"gatsby-browser.js",
"gatsby-node.js",
"gatsby-browser.d.ts",
"gatsby-node.d.ts"
],
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/hub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/integrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
"publishConfig": {
"access": "public"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/npm/cjs/index.js",
"module": "build/npm/esm/index.js",
"types": "build/npm/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/node-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=14"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/opentelemetry-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/opentelemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=14"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
4 changes: 0 additions & 4 deletions packages/remix/.npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions packages/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"engines": {
"node": ">=14"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8",
"scripts"
],
"main": "build/cjs/index.server.js",
"module": "build/esm/index.server.js",
"browser": "build/esm/index.client.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/replay-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
]
}
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"sideEffects": false,
"private": true,
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions packages/replay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
]
}
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"sideEffects": false,
"scripts": {
"build": "run-p build:transpile build:types build:bundle",
Expand Down
6 changes: 6 additions & 0 deletions packages/serverless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=10"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/npm/cjs/index.js",
"module": "build/npm/esm/index.js",
"types": "build/npm/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=16"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.server.js",
"module": "build/esm/index.server.js",
"browser": "build/esm/index.client.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/tracing-internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/tracing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/npm/cjs/index.js",
"module": "build/npm/esm/index.js",
"types": "build/npm/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions packages/typescript/.npmignore

This file was deleted.

3 changes: 3 additions & 0 deletions packages/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"publishConfig": {
"access": "public"
},
"files": [
"tsconfig.json"
],
"peerDependencies": {
"typescript": "4.9.5"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"engines": {
"node": ">=8"
},
"files": [
"cjs",
"esm",
"types",
"types-ts3.8"
],
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "build/types/index.d.ts",
Expand Down
Loading

0 comments on commit ff95fd5

Please sign in to comment.