diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000000..672b7f7700 --- /dev/null +++ b/.npmignore @@ -0,0 +1,40 @@ +# Logs +logs +*.log +npm-debug.log* + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +node_modules + +# Optional npm cache directory +.npm + +# Optional REPL history +.node_repl_history + +# build +# build <-- we want this in the package +build-tests + +# vscode +.vscode diff --git a/package.json b/package.json index 9b29daffb7..3b7107b055 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,13 @@ "scripts": { "pretest": "rimraf ./build-tests && tsc -p ts/test-tsconfig.json", "test": "mocha ./build-tests --recursive", - "prepublish": "tsc -p ts", + "prepublishOnly": "tsc -p ts", "lint": "tslint --project ./ts" }, + "files": [ + "ts", + "build" + ], "repository": { "type": "git", "url": "git+https://github.com/dolanmiu/docx.git"