Closed Tantalon closed 1 year ago
orderByDeps only works if there is a semver match between the dependency and version in package.json
In a npm multi-module project, I use something like this to depend upon other modules:
"dependencies": { "module-b": "file:../module-b" }
This isn't a semver match, so the modules run in the wrong order.
Is there a better way of doing these references?
I think this is just a matter of updating the getWorkspaceGraph function to support that in addition to semver.
getWorkspaceGraph
https://github.com/jamiebuilds/workspaces-run/blob/c3fa2d215a247a41946f579671ded5687f58f445/src/utils/workspaces.ts#L60-L104
Thanks I've raised PR https://github.com/jamiebuilds/workspaces-run/pull/5 to do this.
orderByDeps only works if there is a semver match between the dependency and version in package.json
In a npm multi-module project, I use something like this to depend upon other modules:
This isn't a semver match, so the modules run in the wrong order.
Is there a better way of doing these references?