@stacksjs/path 0.61.23 → 0.62.0

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 CHANGED
@@ -34,7 +34,7 @@ function userViewsPath(path) {
34
34
  return resourcesPath(`views/${path || ""}`);
35
35
  }
36
36
  function userFunctionsPath(path) {
37
- return resourcesPath(`views/${path || ""}`);
37
+ return resourcesPath(`functions/${path || ""}`);
38
38
  }
39
39
  function userJobsPath(path) {
40
40
  return appPath(`Jobs/${path || ""}`);
@@ -100,7 +100,7 @@ function libsPath(path) {
100
100
  return frameworkPath(`libs/${path || ""}`);
101
101
  }
102
102
  function userLibsPath(path) {
103
- return projectPath(`libs/${path || ""}`);
103
+ return resourcesPath(`${path || ""}`);
104
104
  }
105
105
  function libsEntriesPath(path) {
106
106
  return libsPath(`entries/${path || ""}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.61.23",
4
+ "version": "0.62.0",
5
5
  "description": "The Stacks path.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/paths.ts CHANGED
@@ -51,7 +51,7 @@ export function userViewsPath(path?: string) {
51
51
  }
52
52
 
53
53
  export function userFunctionsPath(path?: string) {
54
- return resourcesPath(`views/${path || ''}`)
54
+ return resourcesPath(`functions/${path || ''}`)
55
55
  }
56
56
 
57
57
  /**
@@ -352,8 +352,8 @@ export function libsPath(path?: string): string {
352
352
  * @param path - The relative path to the file or directory within the `libs` directory.
353
353
  * @returns The absolute path to the specified file or directory within the `libs` directory.
354
354
  */
355
- export function userLibsPath(path?: string): string {
356
- return projectPath(`libs/${path || ''}`)
355
+ export function userLibsPath(path?: 'components' | 'functions' | string): string {
356
+ return resourcesPath(`${path || ''}`)
357
357
  }
358
358
 
359
359
  /**