@stacksjs/path 0.74.2 → 0.74.4
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.d.ts +32 -0
- package/dist/index.js +20 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -844,6 +844,34 @@ export declare function schedulerPath(path?: string): string;
|
|
|
844
844
|
* @returns The absolute path to the specified file or directory within the skills directory.
|
|
845
845
|
*/
|
|
846
846
|
export declare function skillsPath(path?: string): string;
|
|
847
|
+
/**
|
|
848
|
+
* Returns the path to the `features` directory within the core directory.
|
|
849
|
+
*
|
|
850
|
+
* @param path - The relative path to the file or directory within the features directory.
|
|
851
|
+
* @returns The absolute path to the specified file or directory within the features directory.
|
|
852
|
+
*/
|
|
853
|
+
export declare function featuresPath(path?: string): string;
|
|
854
|
+
/**
|
|
855
|
+
* Returns the path to the `pagination` directory within the core directory.
|
|
856
|
+
*
|
|
857
|
+
* @param path - The relative path to the file or directory within the pagination directory.
|
|
858
|
+
* @returns The absolute path to the specified file or directory within the pagination directory.
|
|
859
|
+
*/
|
|
860
|
+
export declare function paginationPath(path?: string): string;
|
|
861
|
+
/**
|
|
862
|
+
* Returns the path to the `model-meta` directory within the core directory.
|
|
863
|
+
*
|
|
864
|
+
* @param path - The relative path to the file or directory within the model-meta directory.
|
|
865
|
+
* @returns The absolute path to the specified file or directory within the model-meta directory.
|
|
866
|
+
*/
|
|
867
|
+
export declare function modelMetaPath(path?: string): string;
|
|
868
|
+
/**
|
|
869
|
+
* Returns the path to the `action-runner` directory within the core directory.
|
|
870
|
+
*
|
|
871
|
+
* @param path - The relative path to the file or directory within the action-runner directory.
|
|
872
|
+
* @returns The absolute path to the specified file or directory within the action-runner directory.
|
|
873
|
+
*/
|
|
874
|
+
export declare function actionRunnerPath(path?: string): string;
|
|
847
875
|
/**
|
|
848
876
|
* Returns the path to the `slug` directory within the core directory.
|
|
849
877
|
*
|
|
@@ -1215,6 +1243,10 @@ export declare interface Path {
|
|
|
1215
1243
|
smsPath: (path?: string) => string
|
|
1216
1244
|
skillsPath: (path?: string) => string
|
|
1217
1245
|
slugPath: (path?: string) => string
|
|
1246
|
+
paginationPath: (path?: string) => string
|
|
1247
|
+
modelMetaPath: (path?: string) => string
|
|
1248
|
+
actionRunnerPath: (path?: string) => string
|
|
1249
|
+
featuresPath: (path?: string) => string
|
|
1218
1250
|
scriptsPath: (path?: string) => string
|
|
1219
1251
|
securityPath: (path?: string) => string
|
|
1220
1252
|
serverPath: (path?: string) => string
|
package/dist/index.js
CHANGED
|
@@ -453,6 +453,18 @@ function schedulerPath(path) {
|
|
|
453
453
|
function skillsPath(path) {
|
|
454
454
|
return corePath(`skills/${path || ""}`);
|
|
455
455
|
}
|
|
456
|
+
function featuresPath(path) {
|
|
457
|
+
return corePath(`features/${path || ""}`);
|
|
458
|
+
}
|
|
459
|
+
function paginationPath(path) {
|
|
460
|
+
return corePath(`pagination/${path || ""}`);
|
|
461
|
+
}
|
|
462
|
+
function modelMetaPath(path) {
|
|
463
|
+
return corePath(`model-meta/${path || ""}`);
|
|
464
|
+
}
|
|
465
|
+
function actionRunnerPath(path) {
|
|
466
|
+
return corePath(`action-runner/${path || ""}`);
|
|
467
|
+
}
|
|
456
468
|
function slugPath(path) {
|
|
457
469
|
return corePath(`slug/${path || ""}`);
|
|
458
470
|
}
|
|
@@ -701,6 +713,10 @@ var path = {
|
|
|
701
713
|
smsPath,
|
|
702
714
|
skillsPath,
|
|
703
715
|
slugPath,
|
|
716
|
+
paginationPath,
|
|
717
|
+
modelMetaPath,
|
|
718
|
+
actionRunnerPath,
|
|
719
|
+
featuresPath,
|
|
704
720
|
scriptsPath,
|
|
705
721
|
securityPath,
|
|
706
722
|
serverPath,
|
|
@@ -747,6 +763,7 @@ var path = {
|
|
|
747
763
|
};
|
|
748
764
|
export {
|
|
749
765
|
DEFAULTS_SYNC_MARKER,
|
|
766
|
+
actionRunnerPath,
|
|
750
767
|
actionsPath,
|
|
751
768
|
aiPath,
|
|
752
769
|
aliasPath,
|
|
@@ -798,6 +815,7 @@ export {
|
|
|
798
815
|
extname,
|
|
799
816
|
fakerPath,
|
|
800
817
|
featureFlagsPath,
|
|
818
|
+
featuresPath,
|
|
801
819
|
findProjectPath,
|
|
802
820
|
frameworkCloudPath,
|
|
803
821
|
frameworkPath,
|
|
@@ -821,6 +839,7 @@ export {
|
|
|
821
839
|
loggingPath,
|
|
822
840
|
logsPath,
|
|
823
841
|
mergeDirectoryInto,
|
|
842
|
+
modelMetaPath,
|
|
824
843
|
modelsPath,
|
|
825
844
|
modulesPath,
|
|
826
845
|
newsletterPath,
|
|
@@ -829,6 +848,7 @@ export {
|
|
|
829
848
|
objectsPath,
|
|
830
849
|
onboardingPath,
|
|
831
850
|
ormPath,
|
|
851
|
+
paginationPath,
|
|
832
852
|
path,
|
|
833
853
|
pathPath,
|
|
834
854
|
paymentsPath,
|