@stacksjs/path 0.70.87 → 0.70.90
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 +3 -0
- package/dist/index.js +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -492,6 +492,8 @@ export declare function errorHandlingPath(path?: string): string;
|
|
|
492
492
|
* @returns The absolute path to the specified file or directory within the `events` directory.
|
|
493
493
|
*/
|
|
494
494
|
export declare function eventsPath(path?: string): string;
|
|
495
|
+
/** Returns the path to the feature-flags core package. */
|
|
496
|
+
export declare function featureFlagsPath(path?: string): string;
|
|
495
497
|
/**
|
|
496
498
|
* Returns the path to the `env` directory within the core directory.
|
|
497
499
|
*
|
|
@@ -995,6 +997,7 @@ export declare interface Path {
|
|
|
995
997
|
eslintPluginPath: (path?: string) => string
|
|
996
998
|
errorHandlingPath: (path?: string) => string
|
|
997
999
|
eventsPath: (path?: string) => string
|
|
1000
|
+
featureFlagsPath: (path?: string) => string
|
|
998
1001
|
coreEnvPath: (path?: string) => string
|
|
999
1002
|
healthPath: (path?: string) => string
|
|
1000
1003
|
examplesPath: (type?: 'web-components') => string
|
package/dist/index.js
CHANGED
|
@@ -216,6 +216,9 @@ function errorHandlingPath(path) {
|
|
|
216
216
|
function eventsPath(path) {
|
|
217
217
|
return corePath(`events/${path || ""}`);
|
|
218
218
|
}
|
|
219
|
+
function featureFlagsPath(path) {
|
|
220
|
+
return corePath(`feature-flags/${path || ""}`);
|
|
221
|
+
}
|
|
219
222
|
function coreEnvPath(path) {
|
|
220
223
|
return corePath(`env/${path || ""}`);
|
|
221
224
|
}
|
|
@@ -503,6 +506,7 @@ var path = {
|
|
|
503
506
|
eslintPluginPath,
|
|
504
507
|
errorHandlingPath,
|
|
505
508
|
eventsPath,
|
|
509
|
+
featureFlagsPath,
|
|
506
510
|
coreEnvPath,
|
|
507
511
|
healthPath,
|
|
508
512
|
examplesPath,
|
|
@@ -688,6 +692,7 @@ export {
|
|
|
688
692
|
frameworkPath,
|
|
689
693
|
frameworkCloudPath,
|
|
690
694
|
findProjectPath,
|
|
695
|
+
featureFlagsPath,
|
|
691
696
|
fakerPath,
|
|
692
697
|
extname,
|
|
693
698
|
examplesPath,
|