@stacksjs/path 0.58.22 → 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.
Files changed (2) hide show
  1. package/dist/index.js +7 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -66,10 +66,10 @@ function configPath(path) {
66
66
  return corePath(`config/${path || ""}`);
67
67
  }
68
68
  function corePath(path) {
69
- return frameworkPath(`core/src/${path || ""}`);
69
+ return frameworkPath(`core/${path || ""}`);
70
70
  }
71
71
  function customElementsDataPath() {
72
- return corePath("custom-elements.json");
72
+ return frameworkPath("core/custom-elements.json");
73
73
  }
74
74
  function databasePath(path) {
75
75
  return corePath(`database/${path || ""}`);
@@ -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.22",
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/src/path#readme",
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/src/path"
13
+ "directory": "./storage/framework/core/path"
14
14
  },
15
15
  "bugs": {
16
16
  "url": "https://github.com/stacksjs/stacks/issues"