From be2e038c342d8333b32f0fde67a0026b79c8150e Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 10 Oct 2022 15:29:22 -0700 Subject: [PATCH] [meta] use `npmignore` to autogenerate an npmignore file --- .gitignore | 2 ++ package.json | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c77d1b6..da9c2fc 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ node_modules npm-shrinkwrap.json package-lock.json yarn.lock + +.npmignore diff --git a/package.json b/package.json index 46a9a7c..4fd4fb1 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "tap": "~0.4.0" }, "scripts": { + "prepack": "npmignore --auto --commentLines=auto", "test": "tap test/*.js" }, "testling" : { @@ -36,5 +37,10 @@ "email": "mail@substack.net", "url": "http://substack.net" }, - "license": "MIT" + "license": "MIT", + "publishConfig": { + "ignore": [ + ".github/workflows" + ] + } }