Merge pull request #8 from felipeochoa/npm-fix

Npm fixes - prepublish and files
This commit is contained in:
Dolan
2017-03-08 15:11:58 +00:00
committed by GitHub
2 changed files with 45 additions and 1 deletions

40
.npmignore Normal file
View File

@ -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

View File

@ -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"