@stacksjs/path 0.74.20 → 0.74.22

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. 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 projectPath2 = projects.find((proj) => proj.includes(project));
344
- if (!projectPath2)
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 projectPath2.startsWith("/") ? projectPath2 : `/${projectPath2}`;
346
+ return projectPath.startsWith("/") ? projectPath : `/${projectPath}`;
347
347
  }
348
348
  function projectConfigPath(path) {
349
349
  return projectPath(`config/${path || ""}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.74.20",
4
+ "version": "0.74.22",
5
5
  "description": "The Stacks path.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [