@stacksjs/path 0.74.20 → 0.74.21
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -340,10 +340,10 @@ async function findProjectPath(project) {
|
|
|
340
340
|
const projects = projectList.split(`
|
|
341
341
|
`).filter((line) => line.startsWith(" - ")).map((line) => line.trim().substring(4));
|
|
342
342
|
await debugLog(`Projects in findProjectPath ${projects}`);
|
|
343
|
-
const
|
|
344
|
-
if (!
|
|
343
|
+
const projectPath = projects.find((proj) => proj.includes(project));
|
|
344
|
+
if (!projectPath)
|
|
345
345
|
throw new Error(`Could not find project with name: ${project}`);
|
|
346
|
-
return
|
|
346
|
+
return projectPath.startsWith("/") ? projectPath : `/${projectPath}`;
|
|
347
347
|
}
|
|
348
348
|
function projectConfigPath(path) {
|
|
349
349
|
return projectPath(`config/${path || ""}`);
|