FormidableLabs / component-playground

A component for rendering React components with editable source and live preview
MIT License
1.19k stars 108 forks source link

BUG: Publishr config incorrectly moves real prod dep. #133

Closed ryan-roemer closed 6 years ago

ryan-roemer commented 6 years ago

/cc @boygirl @nwalters512

boygirl commented 6 years ago

@ryan-roemer LGTM. I confirmed that publishr postversion no longer removes babel-polyfill

ryan-roemer commented 6 years ago

Released in component-playground@3.2.1

The publish-diff for the release looks good:

$ publish-diff -o component-playground@3.2.0 -n component-playground@3.2.1 --filter='!dist/**'
Index: package.json
===================================================================
--- package.json    component-playground@3.2.0
+++ package.json    component-playground@3.2.1
@@ -1,7 +1,7 @@
 {
   "name": "component-playground",
-  "version": "3.2.0",
+  "version": "3.2.1",
   "description": "A component for rendering React components with editable source and live preview",
   "keywords": [
     "React",
     "playground",
@@ -62,8 +62,9 @@
     "check-cov": "npm run lint && npm run test-cov",
     "check-dev": "npm run lint && npm run test-dev"
   },
   "dependencies": {
+    "babel-polyfill": "^6.26.0",
     "babel-standalone": "^6.26.0",
     "codemirror": "^5.30.0",
     "prop-types": "^15.6.0",
     "react-codemirror2": "^5.0.0"
@@ -113,9 +114,8 @@
     "webpack-dev-server": "^1.14.0",
     "babel-cli": "^6.26.0",
     "babel-core": "^6.26.0",
     "babel-loader": "^6.4.1",
-    "babel-polyfill": "^6.26.0",
     "babel-preset-env": "^1.6.1",
     "babel-preset-react": "^6.24.1",
     "babel-preset-stage-0": "^6.24.1",
     "babel-preset-stage-1": "^6.24.1",
@@ -123,9 +123,9 @@
     "webpack": "^1.15.0"
   },
   "publishr": {
     "dependencies": [
-      "^babel-(?!standalone)",
+      "^babel-(?!(standalone|polyfill))",
       "^rimraf$",
       "^webpack$"
     ],
     "scripts": {