inkandswitch / cambria-project

Schema evolution with bi-directional lenses.
MIT License
592 stars 24 forks source link

postinstall hook fails #2

Open geoffreylitt opened 3 years ago

geoffreylitt commented 3 years ago

Running yarn install on a node project that depends on cambria results in this error:

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.

Options:

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.

geoffreylitt commented 3 years ago

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

michielbdejong commented 1 month ago

It looks like this issue was fixed that same day in f935be5 and can be closed?