Skip to content

Commit

Permalink
Use a package-config key
Browse files Browse the repository at this point in the history
  • Loading branch information
walston committed Jun 12, 2019
1 parent 811caf6 commit 271783a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const objectPath = require("object-path");
const args = yargs
.scriptName("package-shipit")
.version()
.pkgConf("shipit")
.option("no-overwrite", {
boolean: true,
describe: "Terminates process rather than overwriting old target path",
Expand Down
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,16 @@
"colors": "^1.3.3",
"object-path": "^0.11.4",
"yargs": "^13.2.4"
},
"scripts": {
"pretest": "rm -rf dist/**/*",
"test": "node ./index.js"
},
"shipit": {
"indent": "2",
"omit": "shipit,scripts",
"copy-file": [
"./README.md"
]
}
}

0 comments on commit 271783a

Please sign in to comment.