Skip to content

Commit

Permalink
fix: fix npm stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Superd22 committed Dec 28, 2018
1 parent 364e824 commit 63fa769
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
10 changes: 10 additions & 0 deletions bin/prepublish.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var path = require('path').join(__dirname, '..', 'package.json');
var pkg = require(path);
['babel', 'greenkeeper', 'bundlesize', 'devDependencies', 'eslintConfig'].forEach(function (key) {
delete pkg[key]
});
pkg.scripts = {
postinstall: pkg.scripts.postinstall,
donate: pkg.scripts.donate
};
require('fs').writeFileSync(__dirname + `/../lib/package.json`, JSON.stringify(pkg, null, 2));
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spectrum-bot",
"version": "1.2.0",
"version": "2.0.0",
"description": "A crude API for StarCitizen's SPECTRUM@^0.3.5",
"main": "index.js",
"scripts": {
Expand All @@ -9,7 +9,8 @@
"coverage:html": "nyc -r html -e .ts -x \"spec/**.spec.ts\" npm run test",
"start": "ts-node app/bot.ts",
"build": "tsc -d -p src/ --outdir lib/",
"prepare": "npm run build && mkdir -p cache/ && touch cache/cookie.json"
"prepublishOnly": "node bin/prepublish.js",
"prepare": "mkdir -p cache/ && touch cache/cookie.json"
},
"author": {
"name": "David FAIN",
Expand Down Expand Up @@ -52,10 +53,11 @@
"nyc": "^13.1.0",
"semantic-release": "^15.13.2",
"ts-node": "^7.0.1",
"typedoc": "^0.13.0",
"typedoc-plugin-external-module-name": "^1.1.3"
"typedoc": "^0.13.0"
},
"nyc": {
"include": ["src/**"]
"include": [
"src/**"
]
}
}
}

0 comments on commit 63fa769

Please sign in to comment.