This repository was archived by the owner on Feb 20, 2021. It is now read-only.
Commit 0b97088
authored
chore: Improve the way a npm build script is found. (#150)
* chore: Improve the way a npm build script is found. * This commit will first install just the production-only dependencies. Then a script will check the package.json for a build script. If non is found, it just continues, but if there is a build script, `npm install` will be called again to install the dev dependencies. Then `npm run build` is execute. * This reason for doing this way was so we weren't installing all dependecies if we didn't need them * need to set the NODE_ENV to development to install dev deps when on in debug mode. * Also don't do npm install twice, since this could trigger postinstall scripts twice1 parent e2a6ea3 commit 0b97088
1 file changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 52 | | |
56 | 53 | | |
57 | | - | |
| 54 | + | |
58 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
59 | 71 | | |
60 | 72 | | |
61 | 73 | | |
| |||
0 commit comments