rrce-workflow 0.3.32 → 0.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -474,7 +474,11 @@ function parseWorkspaceConfig(configPath) {
|
|
|
474
474
|
function findClosestProject(projects, cwd = process.cwd()) {
|
|
475
475
|
const matches = projects.map((p) => {
|
|
476
476
|
let matchPath = "";
|
|
477
|
-
if (cwd
|
|
477
|
+
if (cwd === p.path) {
|
|
478
|
+
matchPath = p.path;
|
|
479
|
+
} else if (p.sourcePath && cwd === p.sourcePath) {
|
|
480
|
+
matchPath = p.sourcePath;
|
|
481
|
+
} else if (cwd.startsWith(p.path)) {
|
|
478
482
|
matchPath = p.path;
|
|
479
483
|
} else if (p.sourcePath && cwd.startsWith(p.sourcePath)) {
|
|
480
484
|
matchPath = p.sourcePath;
|