Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: run the command from inside node_modules
Allow d2-style to first scan its own node_modules[0] for the deps it needs, and if the deps are missing, e.g. if Yarn has hoisted shared deps higher up the tree[1], then d2-style can use the standard node module resolution behavior to "find-up" its parents node_modules. Also use find-up to find the nearest .bin folder that has d2-style, and use cross-spawn to run the tools instead of npx for consistency. [0] ./node_modules/@dhis2/cli-style/node_modules/{dep} [1] ./node_modules/{dep}
- Loading branch information