Open geoffreylitt opened 3 years ago
Running yarn install on a node project that depends on cambria results in this error:
yarn install
error /Users/geoffreylitt/dev/arthropod2/arthropod/node_modules/cambria: Command failed. Exit code: 127 Command: yarn run build Arguments: Directory: /Users/geoffreylitt/dev/arthropod2/arthropod/node_modules/cambria Output: yarn run v1.17.3 $ tsc --outDir ./dist
The problem is that we don't install dependencies before attempting to run yarn run build in the post-install hook.
yarn run build
Options:
yarn install && yarn run build
&&
I think this won't be a problem once we publish to npm -- I think we can publish dist to npm without putting it in source control.
actually seems like && may be windows friendly, so I think I'm just going to use that.
https://stackoverflow.com/questions/39172536/running-npm-scripts-sequentially#comment89082222_39172660
It looks like this issue was fixed that same day in f935be5 and can be closed?
Running
yarn install
on a node project that depends on cambria results in this error:The problem is that we don't install dependencies before attempting to run
yarn run build
in the post-install hook.Options:
yarn run build
w/ a cross-platform-friendly version ofyarn install && yarn run build
(&&
not windows-friendly)I think this won't be a problem once we publish to npm -- I think we can publish dist to npm without putting it in source control.