diff --git a/.gitignore b/.gitignore index dfb4f1a..d4d0b62 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ node_modules/ npm-shrinkwrap.json package-lock.json yarn.lock + +.npmignore diff --git a/package.json b/package.json index 580cc37..6fd5e50 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "faucet": "bin/cmd.js" }, "scripts": { + "prepack": "npmignore --auto --commentLines=autogenerated", "lint": "eslint --ext=js,mjs .", "pretest": "npm run lint", "tests-only": "tape test/**/*.js | node bin/cmd", @@ -51,6 +52,14 @@ "license": "MIT", "devDependencies": { "@ljharb/eslint-config": "^21.0.0", - "eslint": "=8.8.0" + "eslint": "=8.8.0", + "npmignore": "^0.3.0" + }, + "publishConfig": { + "ignore": [ + ".github/workflows", + "images/", + "example/" + ] } }