How to add in a package.json a script to compile the dependencies then the package itself ? #1232
Unanswered
stevebeauge
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working a large monorepo that have several shared packages and multiple applications that are consuming the packages.
I'd like to add, in each of the application, a script to build only the application itself and its dependencies.
What I tried :
calling turbo from the app1/package.json
First dependencies, then app itslef
=> Failed because turbo cannot be run outside of the repo root
calling turbo from the app1/package.json, fixing the path
or
Both are looping compilation. Probably because of a weird issue with the
^
that is stripped under windows. Doubling it do not solve the issue.Having a workspace script that accept parameters
Thx to pnpm V7, we can pass parameter to scripts
in /package.json:
in apps/app1/package.json:
Still looping in compilation, becasue the app1's build include building itself
Thanks for advise
Beta Was this translation helpful? Give feedback.
All reactions