diff --git a/.gitignore b/.gitignore index 0afcc7aa2b..40acf3f76e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ /dist /_dev /coverage -/.package.json # Additional bundles /devtools.js diff --git a/config/prepublish.js b/config/prepublish.js deleted file mode 100644 index 073c6caa8f..0000000000 --- a/config/prepublish.js +++ /dev/null @@ -1,22 +0,0 @@ -const path = require('path').join(__dirname, '..', 'package.json'); -const pkg = require(path); - -const UNNECESSARY_KEYS = [ - 'babel', - 'greenkeeper', - 'bundlesize', - 'devDependencies', - 'eslintConfig' -]; - -UNNECESSARY_KEYS.forEach(function (key) { - delete pkg[key]; -}); - -pkg.scripts = { - donate: pkg.scripts.donate, - postinstall: pkg.scripts.postinstall, - postpublish: 'mv -f .package.json package.json' -}; - -require('fs').writeFileSync(path, JSON.stringify(pkg, null, 2)); diff --git a/package.json b/package.json index 54bcac80d3..09069db756 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ "test:size": "bundlesize", "lint": "eslint debug devtools src test", "prepublish": "npm run build", - "prepublishOnly": "cp package.json .package.json; node config/prepublish.js", "smart-release": "npm run build && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish", "release": "cross-env npm run smart-release", "postinstall": "node -e \"console.log('\\u001b[35m\\u001b[1mLove Preact? You can now donate to our open collective:\\u001b[22m\\u001b[39m\\n > \\u001b[34mhttps://opencollective.com/preact/donate\\u001b[0m')\""