From e0770e594ec683ded32fd1b14e876f087fc04f4a Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 20 Oct 2023 13:30:57 -0700 Subject: [PATCH] [meta] use `npmignore` to autogenerate an npmignore file --- .gitignore | 2 ++ package.json | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 058a156..e1249a8 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ yarn.lock coverage .nyc_output + +.npmignore diff --git a/package.json b/package.json index 09c3659..0037562 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "test": "test" }, "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", "prepublishOnly": "safe-publish-latest", "prepublish": "not-in-publish || npm run prepublishOnly", "pretest": "npm run lint", @@ -32,6 +33,7 @@ "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "in-publish": "^2.0.1", + "npmignore": "^0.3.0", "safe-publish-latest": "^2.0.0", "tape": "^5.7.1" }, @@ -86,5 +88,10 @@ "commitLimit": false, "backfillLimit": false, "hideCredit": true + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] } }