@stacksjs/path 0.58.24 → 0.58.27
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 +6 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -66,7 +66,7 @@ function configPath(path) {
|
|
|
66
66
|
return corePath(`config/${path || ""}`);
|
|
67
67
|
}
|
|
68
68
|
function corePath(path) {
|
|
69
|
-
return frameworkPath(`core
|
|
69
|
+
return frameworkPath(`core/${path || ""}`);
|
|
70
70
|
}
|
|
71
71
|
function customElementsDataPath() {
|
|
72
72
|
return frameworkPath("core/custom-elements.json");
|
|
@@ -125,6 +125,9 @@ function gitPath(path) {
|
|
|
125
125
|
function langPath(path) {
|
|
126
126
|
return projectPath(`lang/${path || ""}`);
|
|
127
127
|
}
|
|
128
|
+
function layoutsPath(path) {
|
|
129
|
+
return resourcesPath(`layouts/${path || ""}`);
|
|
130
|
+
}
|
|
128
131
|
function libraryEntryPath(type) {
|
|
129
132
|
return libsEntriesPath(`${type}.ts`);
|
|
130
133
|
}
|
|
@@ -324,6 +327,7 @@ var path = {
|
|
|
324
327
|
functionsPath,
|
|
325
328
|
gitPath,
|
|
326
329
|
langPath,
|
|
330
|
+
layoutsPath,
|
|
327
331
|
libsPath,
|
|
328
332
|
libraryEntryPath,
|
|
329
333
|
lintPath,
|
|
@@ -447,6 +451,7 @@ export {
|
|
|
447
451
|
libsPath,
|
|
448
452
|
libsEntriesPath,
|
|
449
453
|
libraryEntryPath,
|
|
454
|
+
layoutsPath,
|
|
450
455
|
langPath,
|
|
451
456
|
join,
|
|
452
457
|
isAbsolute,
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/path",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.27",
|
|
5
5
|
"description": "The Stacks path.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
|
9
|
-
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/
|
|
9
|
+
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/path#readme",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
13
|
-
"directory": "./storage/framework/core/
|
|
13
|
+
"directory": "./storage/framework/core/path"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/stacksjs/stacks/issues"
|