diff --git a/.gitignore b/.gitignore index e1eb5ab..cadacec 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,5 @@ yarn.lock coverage/ .nyc_output/ + +.npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index b674a9b..0000000 --- a/.npmignore +++ /dev/null @@ -1,27 +0,0 @@ -# gitignore - -lib-cov -*.seed -*.log -*.csv -*.dat -*.out -*.pid -*.gz - -pids -logs -results - -npm-debug.log -node_modules - -# Only apps should have lockfiles -npm-shrinkwrap.json -package-lock.json -yarn.lock - -coverage/ -.nyc_output/ - -.github/workflows diff --git a/package.json b/package.json index feb86fc..88d5357 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "license": "MIT", "main": "index.js", "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", "prepublishOnly": "safe-publish-latest", "prepublish": "not-in-publish || npm run prepublishOnly", "pretest": "npm run lint", @@ -43,6 +44,7 @@ "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "in-publish": "^2.0.1", + "npmignore": "^0.3.0", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", "tape": "^5.6.1" @@ -76,5 +78,10 @@ "commitLimit": false, "backfillLimit": false, "hideCredit": true + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] } }