Skip to content

Commit f7f8613

Browse files
committed
chore(compass): remove postinstall for packaged application
1 parent 852af8d commit f7f8613

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/compass/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@
162162
"download": "hadron-build download",
163163
"evergreen-expansions": "hadron-build info --format=yaml --flatten > expansions.yml",
164164
"build-info": "hadron-build info",
165-
"jsx": "babel ./src --out-dir ./lib",
166165
"eslint": "eslint",
167166
"prettier": "prettier",
168167
"lint": "npm run eslint . && npm run prettier -- --check .",

packages/hadron-build/commands/release.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ const transformPackageJson = async (CONFIG, done) => {
254254
'repository',
255255
'check',
256256
'config.hadron.build',
257+
// Compass postinstall script downloads some files that become part of the
258+
// build during compilation, we don't need to download them again when
259+
// packaging. This allows us to avoid pulling some dev-only deps to the
260+
// production dependencies of the bundled application
261+
'scripts.install',
257262
];
258263

259264
let contents = _.omit(CONFIG.pkg, packageKeysToRemove);

0 commit comments

Comments
 (0)