@stacksjs/path 0.58.62 → 0.58.63

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
@@ -8,6 +8,9 @@ function actionsPath(path) {
8
8
  function relativeActionsPath(path) {
9
9
  return relative(projectPath(), actionsPath(path));
10
10
  }
11
+ function userActionsPath(path) {
12
+ return appPath(`Actions/${path || ""}`);
13
+ }
11
14
  function aiPath(path) {
12
15
  return corePath(`ai/${path || ""}`);
13
16
  }
@@ -311,6 +314,7 @@ function xRayPath(path) {
311
314
  }
312
315
  var path = {
313
316
  actionsPath,
317
+ userActionsPath,
314
318
  aiPath,
315
319
  assetsPath,
316
320
  relativeActionsPath,
@@ -425,6 +429,7 @@ export {
425
429
  viewsPath,
426
430
  validationPath,
427
431
  utilsPath,
432
+ userActionsPath,
428
433
  uiPath,
429
434
  typesPath,
430
435
  toNamespacedPath,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.58.62",
4
+ "version": "0.58.63",
5
5
  "description": "The Stacks path.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/index.ts CHANGED
@@ -23,6 +23,10 @@ export function relativeActionsPath(path?: string) {
23
23
  return relative(projectPath(), actionsPath(path))
24
24
  }
25
25
 
26
+ export function userActionsPath(path?: string) {
27
+ return appPath(`Actions/${path || ''}`)
28
+ }
29
+
26
30
  /**
27
31
  * Returns the path to the `ai` directory. The AI directory
28
32
  * contains the core Stacks' AI logic which currently
@@ -460,6 +464,7 @@ export function xRayPath(path?: string) {
460
464
 
461
465
  export const path = {
462
466
  actionsPath,
467
+ userActionsPath,
463
468
  aiPath,
464
469
  assetsPath,
465
470
  relativeActionsPath,