@stacksjs/path 0.52.7 → 0.52.9
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.cjs +1 -7
- package/dist/index.mjs +1 -7
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -163,14 +163,8 @@ function paymentsPath(path2) {
|
|
|
163
163
|
}
|
|
164
164
|
function projectPath(filePath = "") {
|
|
165
165
|
let path2 = process.cwd();
|
|
166
|
-
|
|
166
|
+
while (path2.includes(".stacks"))
|
|
167
167
|
path2 = pathe.resolve(path2, "..");
|
|
168
|
-
if (path2.includes(".stacks"))
|
|
169
|
-
path2 = pathe.resolve(path2, "..");
|
|
170
|
-
if (path2.includes(".stacks"))
|
|
171
|
-
path2 = pathe.resolve(path2, "..");
|
|
172
|
-
if (!path2.includes(".stacks"))
|
|
173
|
-
path2 = pathe.resolve(path2, ".");
|
|
174
168
|
return pathe.resolve(path2, filePath);
|
|
175
169
|
}
|
|
176
170
|
function pushPath(path2) {
|
package/dist/index.mjs
CHANGED
|
@@ -162,14 +162,8 @@ function paymentsPath(path2) {
|
|
|
162
162
|
}
|
|
163
163
|
function projectPath(filePath = "") {
|
|
164
164
|
let path2 = process.cwd();
|
|
165
|
-
|
|
165
|
+
while (path2.includes(".stacks"))
|
|
166
166
|
path2 = resolve(path2, "..");
|
|
167
|
-
if (path2.includes(".stacks"))
|
|
168
|
-
path2 = resolve(path2, "..");
|
|
169
|
-
if (path2.includes(".stacks"))
|
|
170
|
-
path2 = resolve(path2, "..");
|
|
171
|
-
if (!path2.includes(".stacks"))
|
|
172
|
-
path2 = resolve(path2, ".");
|
|
173
167
|
return resolve(path2, filePath);
|
|
174
168
|
}
|
|
175
169
|
function pushPath(path2) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/path",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.52.
|
|
4
|
+
"version": "0.52.9",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "The Stacks path.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"pathe": "^1.1.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@stacksjs/alias": "0.52.
|
|
49
|
-
"@stacksjs/development": "0.52.
|
|
48
|
+
"@stacksjs/alias": "0.52.9",
|
|
49
|
+
"@stacksjs/development": "0.52.9"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "unbuild",
|