diff --git a/.gitignore b/.gitignore index 5ddccd4..1426e8d 100644 --- a/.gitignore +++ b/.gitignore @@ -64,3 +64,5 @@ typings/ npm-shrinkwrap.json package-lock.json yarn.lock + +.npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 883e730..0000000 --- a/.npmignore +++ /dev/null @@ -1,68 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env - -# next.js build output -.next - -# Only apps should have lockfiles -npm-shrinkwrap.json -package-lock.json -yarn.lock - -.github/workflows diff --git a/package.json b/package.json index 91908d7..890df64 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Which kind of boxed JS primitive is this?", "main": "index.js", "scripts": { - "preversion": "auto-changelog", + "prepack": "npmignore --auto --commentLines=autogenerated", "prepublishOnly": "safe-publish-latest", "prepublish": "not-in-publish || npm run prepublishOnly", "lint": "eslint --ext=js,mjs .", @@ -50,6 +50,7 @@ "eslint": "=8.8.0", "has-symbols": "^1.0.3", "in-publish": "^2.0.1", + "npmignore": "^0.3.0", "nyc": "^10.3.2", "object-inspect": "^1.12.2", "safe-publish-latest": "^2.0.0", @@ -62,5 +63,10 @@ "commitLimit": false, "backfillLimit": false, "hideCredit": true + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] } }