Skip to content

Commit

Permalink
Revert "Add prepublishOnly script (#825)" (#839)
Browse files Browse the repository at this point in the history
This reverts commit 5645573.

Unfortunately, this prepublishOnly script wasn't working properly. The
published package.json was still including the properties that were
supposed to be stripped out by this script, as seen here:
https://unpkg.com/[email protected]/package.json

So instead, to solve #820, we moved the babel settings to a .babelrc
which is not included in the published package:
d6ab85c

Thus, we can remove this prepublishOnly script
  • Loading branch information
rmacklin authored and developit committed Aug 26, 2017
1 parent d6ab85c commit e29de9d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
/dist
/_dev
/coverage
/.package.json

# Additional bundles
/devtools.js
Expand Down
22 changes: 0 additions & 22 deletions config/prepublish.js

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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')\""
Expand Down

0 comments on commit e29de9d

Please sign in to comment.