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 d902bac..295f006 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ ] }, "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", "prepublishOnly": "safe-publish-latest", "prepublish": "not-in-publish || npm run prepublishOnly", "prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')", @@ -51,6 +52,7 @@ "eclint": "^2.8.1", "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" @@ -67,5 +69,10 @@ "commitLimit": false, "backfillLimit": false, "hideCredit": true + }, + "publishConfig": { + "ignore": [ + ".github/workflows" + ] } }