Skip to content

Commit

Permalink
fix(pkg): only run patch-package in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
buschtoens committed Jun 5, 2019
1 parent f987627 commit 9f1d7db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"start": "ember serve",
"test": "ember test",
"test:all": "ember try:each",
"postinstall": "patch-package",
"postinstall": "node ./postinstall.js",
"prepublishOnly": "ember ts:precompile",
"postpublish": "ember ts:clean"
},
Expand Down
7 changes: 7 additions & 0 deletions postinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* eslint-env node */

if (require('fs').existsSync('./ember-cli-build.js')) {
const patchPackage = require('child_process').exec('patch-package');
patchPackage.stdout.pipe(process.stdout);
patchPackage.stderr.pipe(process.stderr);
}

0 comments on commit 9f1d7db

Please sign in to comment.