Skip to content

Commit

Permalink
Specify files to include
Browse files Browse the repository at this point in the history
Each package now specifies the `files` property. This specifies which
files to include, rather than `.npmignore`, which specifies what files
to exclude.
  • Loading branch information
remcohaszing committed Nov 21, 2024
1 parent b8ca304 commit 5443e45
Show file tree
Hide file tree
Showing 17 changed files with 80 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .npmignore

This file was deleted.

5 changes: 5 additions & 0 deletions packages/abbr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/abbr.js",
"types": "dist/abbr.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/analyze-step/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/analyzeStep.js",
"types": "dist/analyzeStep.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/file-exists/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/fileExists.js",
"types": "dist/fileExists.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/format-duration-ms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/formatDurationMs.js",
"types": "dist/formatDurationMs.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/has-property/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/has-property.js",
"types": "dist/has-property.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/post/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"types": "dist/post.d.ts",
"bin": "./dist/post.js",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"pretest": "tsc --build",
Expand Down
5 changes: 5 additions & 0 deletions packages/pr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/pr.js",
"types": "dist/pr.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/prd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/prd.js",
"types": "dist/prd.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/prettier-bytes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "MIT",
"main": "dist/prettierBytes.js",
"types": "dist/prettierBytes.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/slugify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/slugify.js",
"types": "dist/slugify.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/sort-assembly/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/sortAssembly.js",
"types": "dist/sortAssembly.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/sort-object-by-prio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/sortObjectByPrio.js",
"types": "dist/sortObjectByPrio.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/sort-object/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/sortObject.js",
"types": "dist/sortObject.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/sort-result-meta/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/sortResultMeta.js",
"types": "dist/sortResultMeta.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/sort-result/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/sortResult.js",
"types": "dist/sortResult.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down
5 changes: 5 additions & 0 deletions packages/trigger-pager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"license": "AGPL-3.0-only",
"main": "dist/triggerPager.js",
"types": "dist/triggerPager.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
Expand Down

0 comments on commit 5443e45

Please sign in to comment.