From f81ece6aaec2fa14e69ff4f1e0407a8c4e2635a2 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 | 9 ++++++++- 2 files changed, 10 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 2698384..8152d0a 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,12 @@ "main": "index.js", "devDependencies": { "covert": "^1.0.0", + "npmignore": "^0.3.0", "tap": "~0.4.0", "tape": "^3.5.0" }, "scripts": { + "prepack": "npmignore --auto --commentLines=auto", "test": "tap test/*.js", "coverage": "covert test/*.js" }, @@ -41,5 +43,10 @@ "email": "mail@substack.net", "url": "http://substack.net" }, - "license": "MIT" + "license": "MIT", + "publishConfig": { + "ignore": [ + ".github/workflows" + ] + } }