diff --git a/.npmignore b/.npmignore new file mode 100644 index 000000000..c42a223b6 --- /dev/null +++ b/.npmignore @@ -0,0 +1,2 @@ +# Prevent publishing source code to NPM +lib diff --git a/package.json b/package.json index bb0c88015..7cf82bd36 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.0-semantically-released", "description": "HTTP API Testing Framework", "esnext": "lib/index.ts", - "main": "build/node.js", + "main": "build/index.js", "typings": "typings/", "bin": { "dredd": "bin/dredd" @@ -28,7 +28,8 @@ "ci:docs": "npm run docs:build", "ci:test": "npm test", "ci:smoke": "bash ./scripts/smoke.sh", - "ci:release": "semantic-release && npm dist-tag add \"dredd@$(npm view dredd version)\" stable" + "ci:release": "semantic-release && npm dist-tag add \"dredd@$(npm view dredd version)\" stable", + "prepack": "npm run build" }, "repository": { "type": "git", @@ -36,7 +37,8 @@ }, "files": [ "bin", - "lib", + "build", + "options.json", "README.md" ], "dependencies": {