Skip to content

Commit

Permalink
chore(example): use npm pack for relative filepath installation
Browse files Browse the repository at this point in the history
due to the changes of `"file:"` handling in npm5.
refs: npm/npm#15900 (comment)
  • Loading branch information
twada committed Jun 6, 2017
1 parent 8e8fb9e commit 28a13a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ build/Release
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules


# ignore tarballs generated by npm pack
*.tgz
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"postinstall": "npm pack .. | xargs npm install --no-save",
"test": "mocha",
"travis-test": "npm i && mocha test/pass-test.js"
},
Expand All @@ -14,7 +15,6 @@
"license": "MIT",
"devDependencies": {
"espower-loader": "^1.0.0",
"intelli-espower-loader": "file:..",
"mocha": "^3.0.0",
"power-assert": "^1.0.0"
}
Expand Down

0 comments on commit 28a13a5

Please sign in to comment.