@stacksjs/path 0.56.34 → 0.57.2

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.cjs CHANGED
@@ -1,462 +1 @@
1
- 'use strict';
2
-
3
- const pathe = require('pathe');
4
-
5
- function actionsPath(path2) {
6
- return corePath(`actions/src/${path2 || ""}`);
7
- }
8
- function aiPath(path2) {
9
- return corePath(`ai/${path2 || ""}`);
10
- }
11
- function aliasPath() {
12
- return corePath("alias/src/index.ts");
13
- }
14
- function runtimePath(path2) {
15
- return frameworkPath(`buddy/${path2 || ""}`);
16
- }
17
- function arraysPath(path2) {
18
- return corePath(`arrays/${path2 || ""}`);
19
- }
20
- function authPath(path2) {
21
- return corePath(`auth/${path2 || ""}`);
22
- }
23
- function appPath(path2) {
24
- return projectPath(`app/${path2 || ""}`);
25
- }
26
- function buildPath(path2) {
27
- return corePath(`build/${path2 || ""}`);
28
- }
29
- function buildEnginePath(path2) {
30
- return buildPath(`${path2 || ""}`);
31
- }
32
- function libsPath(path2) {
33
- return frameworkPath(`libs/${path2 || ""}`);
34
- }
35
- function libsEntriesPath(path2) {
36
- return libsPath(`entries/${path2 || ""}`);
37
- }
38
- function cachePath(path2) {
39
- return corePath(`cache/${path2 || ""}`);
40
- }
41
- function chatPath(path2) {
42
- return corePath(`chat/${path2 || ""}`);
43
- }
44
- function cliPath(path2) {
45
- return corePath(`cli/${path2 || ""}`);
46
- }
47
- function cloudPath(path2) {
48
- return corePath(`cloud/${path2 || ""}`);
49
- }
50
- function collectionsPath(path2) {
51
- return corePath(`collections/${path2 || ""}`);
52
- }
53
- function componentsPath(path2) {
54
- return resourcesPath(`components/${path2 || ""}`);
55
- }
56
- function configPath(path2) {
57
- return corePath(`config/${path2 || ""}`);
58
- }
59
- function corePath(path2) {
60
- return frameworkPath(`core/${path2 || ""}`);
61
- }
62
- function customElementsDataPath() {
63
- return frameworkPath("custom-elements.json");
64
- }
65
- function dashboardPath(path2) {
66
- return corePath(`dashboard/${path2 || ""}`);
67
- }
68
- function databasePath(path2) {
69
- return corePath(`database/${path2 || ""}`);
70
- }
71
- function datetimePath(path2) {
72
- return corePath(`datetime/${path2 || ""}`);
73
- }
74
- function developmentPath(path2) {
75
- return corePath(`development/${path2 || ""}`);
76
- }
77
- function desktopPath(path2) {
78
- return corePath(`desktop/${path2 || ""}`);
79
- }
80
- function docsPath(path2) {
81
- return corePath(`docs/${path2 || ""}`);
82
- }
83
- function dnsPath(path2) {
84
- return corePath(`domains/${path2 || ""}`);
85
- }
86
- function emailPath(path2) {
87
- return corePath(`email/${path2 || ""}`);
88
- }
89
- function errorHandlingPath(path2) {
90
- return corePath(`error-handling/${path2 || ""}`);
91
- }
92
- function eventsPath(path2) {
93
- return corePath(`events/${path2 || ""}`);
94
- }
95
- function examplesPath(type) {
96
- return frameworkPath(`examples/${type || ""}`);
97
- }
98
- function fakerPath(path2) {
99
- return corePath(`faker/${path2 || ""}`);
100
- }
101
- function frameworkPath(path2) {
102
- return projectPath(`.stacks/${path2 || ""}`);
103
- }
104
- function healthPath(path2) {
105
- return corePath(`health/${path2 || ""}`);
106
- }
107
- function functionsPath(path2) {
108
- return resourcesPath(`functions/${path2 || ""}`);
109
- }
110
- function gitPath(path2) {
111
- return corePath(`git/${path2 || ""}`);
112
- }
113
- function langPath(path2) {
114
- return resourcesPath(`lang/${path2 || ""}`);
115
- }
116
- function libraryEntryPath(type) {
117
- return libsEntriesPath(`${type}.ts`);
118
- }
119
- function lintPath(path2) {
120
- return corePath(`lint/${path2 || ""}`);
121
- }
122
- function loggingPath(path2) {
123
- return corePath(`logging/${path2 || ""}`);
124
- }
125
- function logsPath(path2) {
126
- return projectStoragePath(`logs/${path2 || ""}`);
127
- }
128
- function modelsPath(path2) {
129
- return appPath(`models/${path2 || ""}`);
130
- }
131
- function modulesPath(path2) {
132
- return corePath(`modules/${path2 || ""}`);
133
- }
134
- function notificationsPath(path2) {
135
- return corePath(`notifications/${path2 || ""}`);
136
- }
137
- function ormPath(path2) {
138
- return corePath(`orm/${path2 || ""}`);
139
- }
140
- function objectsPath(path2) {
141
- return corePath(`objects/${path2 || ""}`);
142
- }
143
- function onboardingPath(path2) {
144
- return projectPath(`${path2 || "views/dashboard/onboarding"}`);
145
- }
146
- function packageJsonPath(type) {
147
- if (type === "vue-components")
148
- return frameworkPath("components/vue/package.json");
149
- if (type === "web-components")
150
- return frameworkPath("components/web/package.json");
151
- if (type === "functions")
152
- return frameworkPath("functions/package.json");
153
- return frameworkPath(`${type}/package.json`);
154
- }
155
- function pagesPath(path2) {
156
- return resourcesPath(`pages/${path2 || ""}`);
157
- }
158
- function pathPath(path2) {
159
- return corePath(`path/${path2 || ""}`);
160
- }
161
- function paymentsPath(path2) {
162
- return corePath(`payments/${path2 || ""}`);
163
- }
164
- function projectPath(filePath = "") {
165
- let path2 = process.cwd();
166
- while (path2.includes(".stacks"))
167
- path2 = pathe.resolve(path2, "..");
168
- return pathe.resolve(path2, filePath);
169
- }
170
- function projectConfigPath(path2) {
171
- return projectPath(`config/${path2 || ""}`);
172
- }
173
- function projectStoragePath(path2) {
174
- return projectPath(`storage/${path2 || ""}`);
175
- }
176
- function pushPath(path2) {
177
- return corePath(`push/${path2 || ""}`);
178
- }
179
- function queryBuilderPath(path2) {
180
- return corePath(`query-builder/${path2 || ""}`);
181
- }
182
- function queuePath(path2) {
183
- return corePath(`queue/${path2 || ""}`);
184
- }
185
- function realtimePath(path2) {
186
- return corePath(`realtime/${path2 || ""}`);
187
- }
188
- function resourcesPath(path2) {
189
- return projectPath(`resources/${path2 || ""}`);
190
- }
191
- function replPath(path2) {
192
- return corePath(`repl/${path2 || ""}`);
193
- }
194
- function routerPath(path2) {
195
- return corePath(`router/${path2 || ""}`);
196
- }
197
- function routesPath(path2) {
198
- return projectPath(`routes/${path2 || ""}`);
199
- }
200
- function searchEnginePath(path2) {
201
- return corePath(`search-engine/${path2 || ""}`);
202
- }
203
- function settingsPath(path2) {
204
- return projectPath(`${path2 || "views/dashboard/settings"}`);
205
- }
206
- function scriptsPath(path2) {
207
- return frameworkPath(`scripts/${path2 || ""}`);
208
- }
209
- function schedulerPath(path2) {
210
- return corePath(`scheduler/${path2 || ""}`);
211
- }
212
- function signalsPath(path2) {
213
- return corePath(`signals/${path2 || ""}`);
214
- }
215
- function slugPath(path2) {
216
- return corePath(`slug/${path2 || ""}`);
217
- }
218
- function smsPath(path2) {
219
- return corePath(`sms/${path2 || ""}`);
220
- }
221
- function storagePath(path2) {
222
- return corePath(`storage/${path2 || ""}`);
223
- }
224
- function storesPath(path2) {
225
- return resourcesPath(`stores/${path2 || ""}`);
226
- }
227
- function securityPath(path2) {
228
- return corePath(`security/${path2 || ""}`);
229
- }
230
- function serverPath(path2) {
231
- return corePath(`server/${path2 || ""}`);
232
- }
233
- function serverlessPath(path2) {
234
- return corePath(`serverless/${path2 || ""}`);
235
- }
236
- function stacksPath(path2) {
237
- return frameworkPath(`src/${path2 || ""}`);
238
- }
239
- function stringsPath(path2) {
240
- return corePath(`strings/${path2 || ""}`);
241
- }
242
- function testingPath(path2) {
243
- return corePath(`testing/${path2 || ""}`);
244
- }
245
- function tinkerPath(path2) {
246
- return corePath(`tinker/${path2 || ""}`);
247
- }
248
- function testsPath(path2) {
249
- return frameworkPath(`tests/${path2 || ""}`);
250
- }
251
- function typesPath(path2) {
252
- return corePath(`types/${path2 || ""}`);
253
- }
254
- function uiPath(path2) {
255
- return corePath(`ui/${path2 || ""}`);
256
- }
257
- function utilsPath(path2) {
258
- return corePath(`utils/${path2 || ""}`);
259
- }
260
- function validationPath(path2) {
261
- return corePath(`validation/${path2 || ""}`);
262
- }
263
- function xRayPath(path2) {
264
- return corePath(`x-ray/${path2 || ""}`);
265
- }
266
- const path = {
267
- aiPath,
268
- actionsPath,
269
- aliasPath,
270
- arraysPath,
271
- appPath,
272
- authPath,
273
- buildEnginePath,
274
- libsEntriesPath,
275
- buildPath,
276
- cachePath,
277
- chatPath,
278
- cliPath,
279
- cloudPath,
280
- collectionsPath,
281
- componentsPath,
282
- configPath,
283
- projectConfigPath,
284
- corePath,
285
- customElementsDataPath,
286
- databasePath,
287
- datetimePath,
288
- developmentPath,
289
- dashboardPath,
290
- desktopPath,
291
- docsPath,
292
- dnsPath,
293
- emailPath,
294
- errorHandlingPath,
295
- eventsPath,
296
- healthPath,
297
- examplesPath,
298
- fakerPath,
299
- frameworkPath,
300
- storagePath,
301
- functionsPath,
302
- gitPath,
303
- langPath,
304
- libsPath,
305
- libraryEntryPath,
306
- lintPath,
307
- loggingPath,
308
- modulesPath,
309
- ormPath,
310
- objectsPath,
311
- onboardingPath,
312
- notificationsPath,
313
- packageJsonPath,
314
- pagesPath,
315
- pathPath,
316
- paymentsPath,
317
- projectPath,
318
- pushPath,
319
- queryBuilderPath,
320
- queuePath,
321
- realtimePath,
322
- resourcesPath,
323
- replPath,
324
- routerPath,
325
- routesPath,
326
- searchEnginePath,
327
- schedulerPath,
328
- settingsPath,
329
- smsPath,
330
- signalsPath,
331
- slugPath,
332
- scriptsPath,
333
- securityPath,
334
- serverPath,
335
- serverlessPath,
336
- stacksPath,
337
- stringsPath,
338
- storesPath,
339
- testingPath,
340
- testsPath,
341
- tinkerPath,
342
- typesPath,
343
- uiPath,
344
- utilsPath,
345
- validationPath,
346
- xRayPath,
347
- // path utils
348
- basename: pathe.basename,
349
- delimiter: pathe.delimiter,
350
- dirname: pathe.dirname,
351
- extname: pathe.extname,
352
- format: pathe.format,
353
- isAbsolute: pathe.isAbsolute,
354
- join: pathe.join,
355
- normalize: pathe.normalize,
356
- normalizeString: pathe.normalizeString,
357
- parse: pathe.parse,
358
- relative: pathe.relative,
359
- resolve: pathe.resolve,
360
- sep: pathe.sep,
361
- toNamespacedPath: pathe.toNamespacedPath
362
- };
363
-
364
- exports.basename = pathe.basename;
365
- exports.delimiter = pathe.delimiter;
366
- exports.dirname = pathe.dirname;
367
- exports.extname = pathe.extname;
368
- exports.format = pathe.format;
369
- exports.isAbsolute = pathe.isAbsolute;
370
- exports.join = pathe.join;
371
- exports.normalize = pathe.normalize;
372
- exports.normalizeString = pathe.normalizeString;
373
- exports.parse = pathe.parse;
374
- exports.relative = pathe.relative;
375
- exports.resolve = pathe.resolve;
376
- exports.sep = pathe.sep;
377
- exports.toNamespacedPath = pathe.toNamespacedPath;
378
- exports.actionsPath = actionsPath;
379
- exports.aiPath = aiPath;
380
- exports.aliasPath = aliasPath;
381
- exports.appPath = appPath;
382
- exports.arraysPath = arraysPath;
383
- exports.authPath = authPath;
384
- exports.buildEnginePath = buildEnginePath;
385
- exports.buildPath = buildPath;
386
- exports.cachePath = cachePath;
387
- exports.chatPath = chatPath;
388
- exports.cliPath = cliPath;
389
- exports.cloudPath = cloudPath;
390
- exports.collectionsPath = collectionsPath;
391
- exports.componentsPath = componentsPath;
392
- exports.configPath = configPath;
393
- exports.corePath = corePath;
394
- exports.customElementsDataPath = customElementsDataPath;
395
- exports.dashboardPath = dashboardPath;
396
- exports.databasePath = databasePath;
397
- exports.datetimePath = datetimePath;
398
- exports.desktopPath = desktopPath;
399
- exports.developmentPath = developmentPath;
400
- exports.dnsPath = dnsPath;
401
- exports.docsPath = docsPath;
402
- exports.emailPath = emailPath;
403
- exports.errorHandlingPath = errorHandlingPath;
404
- exports.eventsPath = eventsPath;
405
- exports.examplesPath = examplesPath;
406
- exports.fakerPath = fakerPath;
407
- exports.frameworkPath = frameworkPath;
408
- exports.functionsPath = functionsPath;
409
- exports.gitPath = gitPath;
410
- exports.healthPath = healthPath;
411
- exports.langPath = langPath;
412
- exports.libraryEntryPath = libraryEntryPath;
413
- exports.libsEntriesPath = libsEntriesPath;
414
- exports.libsPath = libsPath;
415
- exports.lintPath = lintPath;
416
- exports.loggingPath = loggingPath;
417
- exports.logsPath = logsPath;
418
- exports.modelsPath = modelsPath;
419
- exports.modulesPath = modulesPath;
420
- exports.notificationsPath = notificationsPath;
421
- exports.objectsPath = objectsPath;
422
- exports.onboardingPath = onboardingPath;
423
- exports.ormPath = ormPath;
424
- exports.packageJsonPath = packageJsonPath;
425
- exports.pagesPath = pagesPath;
426
- exports.path = path;
427
- exports.pathPath = pathPath;
428
- exports.paymentsPath = paymentsPath;
429
- exports.projectConfigPath = projectConfigPath;
430
- exports.projectPath = projectPath;
431
- exports.projectStoragePath = projectStoragePath;
432
- exports.pushPath = pushPath;
433
- exports.queryBuilderPath = queryBuilderPath;
434
- exports.queuePath = queuePath;
435
- exports.realtimePath = realtimePath;
436
- exports.replPath = replPath;
437
- exports.resourcesPath = resourcesPath;
438
- exports.routerPath = routerPath;
439
- exports.routesPath = routesPath;
440
- exports.runtimePath = runtimePath;
441
- exports.schedulerPath = schedulerPath;
442
- exports.scriptsPath = scriptsPath;
443
- exports.searchEnginePath = searchEnginePath;
444
- exports.securityPath = securityPath;
445
- exports.serverPath = serverPath;
446
- exports.serverlessPath = serverlessPath;
447
- exports.settingsPath = settingsPath;
448
- exports.signalsPath = signalsPath;
449
- exports.slugPath = slugPath;
450
- exports.smsPath = smsPath;
451
- exports.stacksPath = stacksPath;
452
- exports.storagePath = storagePath;
453
- exports.storesPath = storesPath;
454
- exports.stringsPath = stringsPath;
455
- exports.testingPath = testingPath;
456
- exports.testsPath = testsPath;
457
- exports.tinkerPath = tinkerPath;
458
- exports.typesPath = typesPath;
459
- exports.uiPath = uiPath;
460
- exports.utilsPath = utilsPath;
461
- exports.validationPath = validationPath;
462
- exports.xRayPath = xRayPath;
1
+ module.exports = require("/home/runner/work/stacks/stacks/node_modules/.pnpm/jiti@1.18.2/node_modules/jiti/lib/index.js")(null, { interopDefault: true, esmResolve: true })("/home/runner/work/stacks/stacks/.stacks/core/path/src/index.ts")
package/dist/index.d.ts CHANGED
@@ -1,7 +1,4 @@
1
- import * as _path from 'path';
2
- import { normalizeString } from 'pathe';
3
- export { basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath } from 'pathe';
4
-
1
+ import { basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath } from 'pathe';
5
2
  /**
6
3
  * Returns the path to the `actions` directory. The actions directory
7
4
  * contains the core Stacks' actions. An action
@@ -16,7 +13,7 @@ export { basename, delimiter, dirname, extname, format, isAbsolute, join, normal
16
13
  * buildPath('any-path.ts')
17
14
  * ```
18
15
  */
19
- declare function actionsPath(path?: string): string;
16
+ export declare function actionsPath(path?: string): any;
20
17
  /**
21
18
  * Returns the path to the `ai` directory. The AI directory
22
19
  * contains the core Stacks' AI logic which currently
@@ -33,12 +30,12 @@ declare function actionsPath(path?: string): string;
33
30
  * // path is /Users/chrisbreuer/Code/stacks/.stacks/core/ai
34
31
  * ```
35
32
  */
36
- declare function aiPath(path?: string): string;
37
- declare function aliasPath(): string;
38
- declare function runtimePath(path?: string): string;
39
- declare function arraysPath(path?: string): string;
40
- declare function authPath(path?: string): string;
41
- declare function appPath(path?: string): string;
33
+ export declare function aiPath(path?: string): any;
34
+ export declare function aliasPath(): any;
35
+ export declare function runtimePath(path?: string): any;
36
+ export declare function arraysPath(path?: string): any;
37
+ export declare function authPath(path?: string): any;
38
+ export declare function appPath(path?: string): any;
42
39
  /**
43
40
  * Returns the path to the build directory. The build directory
44
41
  * contains Stacks' build engine & its tooling integrations.
@@ -51,85 +48,85 @@ declare function appPath(path?: string): string;
51
48
  * buildPath('vue-components.ts')
52
49
  * ```
53
50
  */
54
- declare function buildPath(path?: string): string;
55
- declare function buildEnginePath(path?: string): string;
56
- declare function libsPath(path?: string): string;
57
- declare function libsEntriesPath(path?: string): string;
58
- declare function cachePath(path?: string): string;
59
- declare function chatPath(path?: string): string;
60
- declare function cliPath(path?: string): string;
61
- declare function cloudPath(path?: string): string;
62
- declare function collectionsPath(path?: string): string;
63
- declare function componentsPath(path?: string): string;
64
- declare function configPath(path?: string): string;
65
- declare function corePath(path?: string): string;
66
- declare function customElementsDataPath(): string;
67
- declare function dashboardPath(path?: string): string;
68
- declare function databasePath(path?: string): string;
69
- declare function datetimePath(path?: string): string;
70
- declare function developmentPath(path?: string): string;
71
- declare function desktopPath(path?: string): string;
72
- declare function docsPath(path?: string): string;
73
- declare function dnsPath(path?: string): string;
74
- declare function emailPath(path?: string): string;
75
- declare function errorHandlingPath(path?: string): string;
76
- declare function eventsPath(path?: string): string;
77
- declare function examplesPath(type: 'vue-components' | 'web-components'): string;
78
- declare function fakerPath(path?: string): string;
79
- declare function frameworkPath(path?: string): string;
80
- declare function healthPath(path?: string): string;
81
- declare function functionsPath(path?: string): string;
82
- declare function gitPath(path?: string): string;
83
- declare function langPath(path?: string): string;
84
- type LibraryType = 'vue-components' | 'web-components' | 'functions';
85
- declare function libraryEntryPath(type: LibraryType): string;
86
- declare function lintPath(path?: string): string;
87
- declare function loggingPath(path?: string): string;
88
- declare function logsPath(path?: string): string;
89
- declare function modelsPath(path?: string): string;
90
- declare function modulesPath(path?: string): string;
91
- declare function notificationsPath(path?: string): string;
92
- declare function ormPath(path?: string): string;
93
- declare function objectsPath(path?: string): string;
94
- declare function onboardingPath(path?: string): string;
95
- declare function packageJsonPath(type: 'vue-components' | 'web-components' | 'functions'): string;
96
- declare function pagesPath(path?: string): string;
97
- declare function pathPath(path?: string): string;
98
- declare function paymentsPath(path?: string): string;
99
- declare function projectPath(filePath?: string): string;
100
- declare function projectConfigPath(path?: string): string;
101
- declare function projectStoragePath(path?: string): string;
102
- declare function pushPath(path?: string): string;
103
- declare function queryBuilderPath(path?: string): string;
104
- declare function queuePath(path?: string): string;
105
- declare function realtimePath(path?: string): string;
106
- declare function resourcesPath(path?: string): string;
107
- declare function replPath(path?: string): string;
108
- declare function routerPath(path?: string): string;
109
- declare function routesPath(path?: string): string;
110
- declare function searchEnginePath(path?: string): string;
111
- declare function settingsPath(path?: string): string;
112
- declare function scriptsPath(path?: string): string;
113
- declare function schedulerPath(path?: string): string;
114
- declare function signalsPath(path?: string): string;
115
- declare function slugPath(path?: string): string;
116
- declare function smsPath(path?: string): string;
117
- declare function storagePath(path?: string): string;
118
- declare function storesPath(path?: string): string;
119
- declare function securityPath(path?: string): string;
120
- declare function serverPath(path?: string): string;
121
- declare function serverlessPath(path?: string): string;
122
- declare function stacksPath(path?: string): string;
123
- declare function stringsPath(path?: string): string;
124
- declare function testingPath(path?: string): string;
125
- declare function tinkerPath(path?: string): string;
126
- declare function testsPath(path?: string): string;
127
- declare function typesPath(path?: string): string;
128
- declare function uiPath(path?: string): string;
129
- declare function utilsPath(path?: string): string;
130
- declare function validationPath(path?: string): string;
131
- declare function xRayPath(path?: string): string;
132
- declare const path: {
51
+ export declare function buildPath(path?: string): any;
52
+ export declare function buildEnginePath(path?: string): any;
53
+ export declare function libsPath(path?: string): any;
54
+ export declare function libsEntriesPath(path?: string): any;
55
+ export declare function cachePath(path?: string): any;
56
+ export declare function chatPath(path?: string): any;
57
+ export declare function cliPath(path?: string): any;
58
+ export declare function cloudPath(path?: string): any;
59
+ export declare function collectionsPath(path?: string): any;
60
+ export declare function componentsPath(path?: string): any;
61
+ export declare function configPath(path?: string): any;
62
+ export declare function corePath(path?: string): any;
63
+ export declare function customElementsDataPath(): any;
64
+ export declare function dashboardPath(path?: string): any;
65
+ export declare function databasePath(path?: string): any;
66
+ export declare function datetimePath(path?: string): any;
67
+ export declare function developmentPath(path?: string): any;
68
+ export declare function desktopPath(path?: string): any;
69
+ export declare function docsPath(path?: string): any;
70
+ export declare function dnsPath(path?: string): any;
71
+ export declare function emailPath(path?: string): any;
72
+ export declare function errorHandlingPath(path?: string): any;
73
+ export declare function eventsPath(path?: string): any;
74
+ export declare function examplesPath(type: 'vue-components' | 'web-components'): any;
75
+ export declare function fakerPath(path?: string): any;
76
+ export declare function frameworkPath(path?: string): any;
77
+ export declare function healthPath(path?: string): any;
78
+ export declare function functionsPath(path?: string): any;
79
+ export declare function gitPath(path?: string): any;
80
+ export declare function langPath(path?: string): any;
81
+ export type LibraryType = 'vue-components' | 'web-components' | 'functions';
82
+ export declare function libraryEntryPath(type: LibraryType): any;
83
+ export declare function lintPath(path?: string): any;
84
+ export declare function loggingPath(path?: string): any;
85
+ export declare function logsPath(path?: string): any;
86
+ export declare function modelsPath(path?: string): any;
87
+ export declare function modulesPath(path?: string): any;
88
+ export declare function notificationsPath(path?: string): any;
89
+ export declare function ormPath(path?: string): any;
90
+ export declare function objectsPath(path?: string): any;
91
+ export declare function onboardingPath(path?: string): any;
92
+ export declare function packageJsonPath(type: 'vue-components' | 'web-components' | 'functions'): any;
93
+ export declare function pagesPath(path?: string): any;
94
+ export declare function pathPath(path?: string): any;
95
+ export declare function paymentsPath(path?: string): any;
96
+ export declare function projectPath(filePath?: string): any;
97
+ export declare function projectConfigPath(path?: string): any;
98
+ export declare function projectStoragePath(path?: string): any;
99
+ export declare function pushPath(path?: string): any;
100
+ export declare function queryBuilderPath(path?: string): any;
101
+ export declare function queuePath(path?: string): any;
102
+ export declare function realtimePath(path?: string): any;
103
+ export declare function resourcesPath(path?: string): any;
104
+ export declare function replPath(path?: string): any;
105
+ export declare function routerPath(path?: string): any;
106
+ export declare function routesPath(path?: string): any;
107
+ export declare function searchEnginePath(path?: string): any;
108
+ export declare function settingsPath(path?: string): any;
109
+ export declare function scriptsPath(path?: string): any;
110
+ export declare function schedulerPath(path?: string): any;
111
+ export declare function signalsPath(path?: string): any;
112
+ export declare function slugPath(path?: string): any;
113
+ export declare function smsPath(path?: string): any;
114
+ export declare function storagePath(path?: string): any;
115
+ export declare function storesPath(path?: string): any;
116
+ export declare function securityPath(path?: string): any;
117
+ export declare function serverPath(path?: string): any;
118
+ export declare function serverlessPath(path?: string): any;
119
+ export declare function stacksPath(path?: string): any;
120
+ export declare function stringsPath(path?: string): any;
121
+ export declare function testingPath(path?: string): any;
122
+ export declare function tinkerPath(path?: string): any;
123
+ export declare function testsPath(path?: string): any;
124
+ export declare function typesPath(path?: string): any;
125
+ export declare function uiPath(path?: string): any;
126
+ export declare function utilsPath(path?: string): any;
127
+ export declare function validationPath(path?: string): any;
128
+ export declare function xRayPath(path?: string): any;
129
+ export declare const path: {
133
130
  aiPath: typeof aiPath;
134
131
  actionsPath: typeof actionsPath;
135
132
  aliasPath: typeof aliasPath;
@@ -210,20 +207,19 @@ declare const path: {
210
207
  utilsPath: typeof utilsPath;
211
208
  validationPath: typeof validationPath;
212
209
  xRayPath: typeof xRayPath;
213
- basename: (path: string, suffix?: string | undefined) => string;
210
+ basename: any;
214
211
  delimiter: string;
215
- dirname: (path: string) => string;
216
- extname: (path: string) => string;
217
- format: (pathObject: _path.FormatInputPathObject) => string;
218
- isAbsolute: (path: string) => boolean;
219
- join: (...paths: string[]) => string;
220
- normalize: (path: string) => string;
212
+ dirname: any;
213
+ extname: any;
214
+ format: any;
215
+ isAbsolute: any;
216
+ join: any;
217
+ normalize: any;
221
218
  normalizeString: typeof normalizeString;
222
- parse: (path: string) => _path.ParsedPath;
223
- relative: (from: string, to: string) => string;
224
- resolve: (...paths: string[]) => string;
219
+ parse: any;
220
+ relative: any;
221
+ resolve: any;
225
222
  sep: string;
226
- toNamespacedPath: (path: string) => string;
223
+ toNamespacedPath: any;
227
224
  };
228
-
229
- export { LibraryType, actionsPath, aiPath, aliasPath, appPath, arraysPath, authPath, buildEnginePath, buildPath, cachePath, chatPath, cliPath, cloudPath, collectionsPath, componentsPath, configPath, corePath, customElementsDataPath, dashboardPath, databasePath, datetimePath, desktopPath, developmentPath, dnsPath, docsPath, emailPath, errorHandlingPath, eventsPath, examplesPath, fakerPath, frameworkPath, functionsPath, gitPath, healthPath, langPath, libraryEntryPath, libsEntriesPath, libsPath, lintPath, loggingPath, logsPath, modelsPath, modulesPath, notificationsPath, objectsPath, onboardingPath, ormPath, packageJsonPath, pagesPath, path, pathPath, paymentsPath, projectConfigPath, projectPath, projectStoragePath, pushPath, queryBuilderPath, queuePath, realtimePath, replPath, resourcesPath, routerPath, routesPath, runtimePath, schedulerPath, scriptsPath, searchEnginePath, securityPath, serverPath, serverlessPath, settingsPath, signalsPath, slugPath, smsPath, stacksPath, storagePath, storesPath, stringsPath, testingPath, testsPath, tinkerPath, typesPath, uiPath, utilsPath, validationPath, xRayPath };
225
+ export { basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath };
package/dist/index.mjs CHANGED
@@ -1,148 +1,146 @@
1
- import { resolve, basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, sep, toNamespacedPath } from 'pathe';
2
- export { basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath } from 'pathe';
3
-
4
- function actionsPath(path2) {
1
+ import { basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath } from "pathe";
2
+ export function actionsPath(path2) {
5
3
  return corePath(`actions/src/${path2 || ""}`);
6
4
  }
7
- function aiPath(path2) {
5
+ export function aiPath(path2) {
8
6
  return corePath(`ai/${path2 || ""}`);
9
7
  }
10
- function aliasPath() {
8
+ export function aliasPath() {
11
9
  return corePath("alias/src/index.ts");
12
10
  }
13
- function runtimePath(path2) {
11
+ export function runtimePath(path2) {
14
12
  return frameworkPath(`buddy/${path2 || ""}`);
15
13
  }
16
- function arraysPath(path2) {
14
+ export function arraysPath(path2) {
17
15
  return corePath(`arrays/${path2 || ""}`);
18
16
  }
19
- function authPath(path2) {
17
+ export function authPath(path2) {
20
18
  return corePath(`auth/${path2 || ""}`);
21
19
  }
22
- function appPath(path2) {
20
+ export function appPath(path2) {
23
21
  return projectPath(`app/${path2 || ""}`);
24
22
  }
25
- function buildPath(path2) {
23
+ export function buildPath(path2) {
26
24
  return corePath(`build/${path2 || ""}`);
27
25
  }
28
- function buildEnginePath(path2) {
26
+ export function buildEnginePath(path2) {
29
27
  return buildPath(`${path2 || ""}`);
30
28
  }
31
- function libsPath(path2) {
29
+ export function libsPath(path2) {
32
30
  return frameworkPath(`libs/${path2 || ""}`);
33
31
  }
34
- function libsEntriesPath(path2) {
32
+ export function libsEntriesPath(path2) {
35
33
  return libsPath(`entries/${path2 || ""}`);
36
34
  }
37
- function cachePath(path2) {
35
+ export function cachePath(path2) {
38
36
  return corePath(`cache/${path2 || ""}`);
39
37
  }
40
- function chatPath(path2) {
38
+ export function chatPath(path2) {
41
39
  return corePath(`chat/${path2 || ""}`);
42
40
  }
43
- function cliPath(path2) {
41
+ export function cliPath(path2) {
44
42
  return corePath(`cli/${path2 || ""}`);
45
43
  }
46
- function cloudPath(path2) {
44
+ export function cloudPath(path2) {
47
45
  return corePath(`cloud/${path2 || ""}`);
48
46
  }
49
- function collectionsPath(path2) {
47
+ export function collectionsPath(path2) {
50
48
  return corePath(`collections/${path2 || ""}`);
51
49
  }
52
- function componentsPath(path2) {
50
+ export function componentsPath(path2) {
53
51
  return resourcesPath(`components/${path2 || ""}`);
54
52
  }
55
- function configPath(path2) {
53
+ export function configPath(path2) {
56
54
  return corePath(`config/${path2 || ""}`);
57
55
  }
58
- function corePath(path2) {
56
+ export function corePath(path2) {
59
57
  return frameworkPath(`core/${path2 || ""}`);
60
58
  }
61
- function customElementsDataPath() {
59
+ export function customElementsDataPath() {
62
60
  return frameworkPath("custom-elements.json");
63
61
  }
64
- function dashboardPath(path2) {
62
+ export function dashboardPath(path2) {
65
63
  return corePath(`dashboard/${path2 || ""}`);
66
64
  }
67
- function databasePath(path2) {
65
+ export function databasePath(path2) {
68
66
  return corePath(`database/${path2 || ""}`);
69
67
  }
70
- function datetimePath(path2) {
68
+ export function datetimePath(path2) {
71
69
  return corePath(`datetime/${path2 || ""}`);
72
70
  }
73
- function developmentPath(path2) {
71
+ export function developmentPath(path2) {
74
72
  return corePath(`development/${path2 || ""}`);
75
73
  }
76
- function desktopPath(path2) {
74
+ export function desktopPath(path2) {
77
75
  return corePath(`desktop/${path2 || ""}`);
78
76
  }
79
- function docsPath(path2) {
77
+ export function docsPath(path2) {
80
78
  return corePath(`docs/${path2 || ""}`);
81
79
  }
82
- function dnsPath(path2) {
80
+ export function dnsPath(path2) {
83
81
  return corePath(`domains/${path2 || ""}`);
84
82
  }
85
- function emailPath(path2) {
83
+ export function emailPath(path2) {
86
84
  return corePath(`email/${path2 || ""}`);
87
85
  }
88
- function errorHandlingPath(path2) {
86
+ export function errorHandlingPath(path2) {
89
87
  return corePath(`error-handling/${path2 || ""}`);
90
88
  }
91
- function eventsPath(path2) {
89
+ export function eventsPath(path2) {
92
90
  return corePath(`events/${path2 || ""}`);
93
91
  }
94
- function examplesPath(type) {
92
+ export function examplesPath(type) {
95
93
  return frameworkPath(`examples/${type || ""}`);
96
94
  }
97
- function fakerPath(path2) {
95
+ export function fakerPath(path2) {
98
96
  return corePath(`faker/${path2 || ""}`);
99
97
  }
100
- function frameworkPath(path2) {
98
+ export function frameworkPath(path2) {
101
99
  return projectPath(`.stacks/${path2 || ""}`);
102
100
  }
103
- function healthPath(path2) {
101
+ export function healthPath(path2) {
104
102
  return corePath(`health/${path2 || ""}`);
105
103
  }
106
- function functionsPath(path2) {
104
+ export function functionsPath(path2) {
107
105
  return resourcesPath(`functions/${path2 || ""}`);
108
106
  }
109
- function gitPath(path2) {
107
+ export function gitPath(path2) {
110
108
  return corePath(`git/${path2 || ""}`);
111
109
  }
112
- function langPath(path2) {
110
+ export function langPath(path2) {
113
111
  return resourcesPath(`lang/${path2 || ""}`);
114
112
  }
115
- function libraryEntryPath(type) {
113
+ export function libraryEntryPath(type) {
116
114
  return libsEntriesPath(`${type}.ts`);
117
115
  }
118
- function lintPath(path2) {
116
+ export function lintPath(path2) {
119
117
  return corePath(`lint/${path2 || ""}`);
120
118
  }
121
- function loggingPath(path2) {
119
+ export function loggingPath(path2) {
122
120
  return corePath(`logging/${path2 || ""}`);
123
121
  }
124
- function logsPath(path2) {
122
+ export function logsPath(path2) {
125
123
  return projectStoragePath(`logs/${path2 || ""}`);
126
124
  }
127
- function modelsPath(path2) {
125
+ export function modelsPath(path2) {
128
126
  return appPath(`models/${path2 || ""}`);
129
127
  }
130
- function modulesPath(path2) {
128
+ export function modulesPath(path2) {
131
129
  return corePath(`modules/${path2 || ""}`);
132
130
  }
133
- function notificationsPath(path2) {
131
+ export function notificationsPath(path2) {
134
132
  return corePath(`notifications/${path2 || ""}`);
135
133
  }
136
- function ormPath(path2) {
134
+ export function ormPath(path2) {
137
135
  return corePath(`orm/${path2 || ""}`);
138
136
  }
139
- function objectsPath(path2) {
137
+ export function objectsPath(path2) {
140
138
  return corePath(`objects/${path2 || ""}`);
141
139
  }
142
- function onboardingPath(path2) {
140
+ export function onboardingPath(path2) {
143
141
  return projectPath(`${path2 || "views/dashboard/onboarding"}`);
144
142
  }
145
- function packageJsonPath(type) {
143
+ export function packageJsonPath(type) {
146
144
  if (type === "vue-components")
147
145
  return frameworkPath("components/vue/package.json");
148
146
  if (type === "web-components")
@@ -151,118 +149,118 @@ function packageJsonPath(type) {
151
149
  return frameworkPath("functions/package.json");
152
150
  return frameworkPath(`${type}/package.json`);
153
151
  }
154
- function pagesPath(path2) {
152
+ export function pagesPath(path2) {
155
153
  return resourcesPath(`pages/${path2 || ""}`);
156
154
  }
157
- function pathPath(path2) {
155
+ export function pathPath(path2) {
158
156
  return corePath(`path/${path2 || ""}`);
159
157
  }
160
- function paymentsPath(path2) {
158
+ export function paymentsPath(path2) {
161
159
  return corePath(`payments/${path2 || ""}`);
162
160
  }
163
- function projectPath(filePath = "") {
161
+ export function projectPath(filePath = "") {
164
162
  let path2 = process.cwd();
165
163
  while (path2.includes(".stacks"))
166
164
  path2 = resolve(path2, "..");
167
165
  return resolve(path2, filePath);
168
166
  }
169
- function projectConfigPath(path2) {
167
+ export function projectConfigPath(path2) {
170
168
  return projectPath(`config/${path2 || ""}`);
171
169
  }
172
- function projectStoragePath(path2) {
170
+ export function projectStoragePath(path2) {
173
171
  return projectPath(`storage/${path2 || ""}`);
174
172
  }
175
- function pushPath(path2) {
173
+ export function pushPath(path2) {
176
174
  return corePath(`push/${path2 || ""}`);
177
175
  }
178
- function queryBuilderPath(path2) {
176
+ export function queryBuilderPath(path2) {
179
177
  return corePath(`query-builder/${path2 || ""}`);
180
178
  }
181
- function queuePath(path2) {
179
+ export function queuePath(path2) {
182
180
  return corePath(`queue/${path2 || ""}`);
183
181
  }
184
- function realtimePath(path2) {
182
+ export function realtimePath(path2) {
185
183
  return corePath(`realtime/${path2 || ""}`);
186
184
  }
187
- function resourcesPath(path2) {
185
+ export function resourcesPath(path2) {
188
186
  return projectPath(`resources/${path2 || ""}`);
189
187
  }
190
- function replPath(path2) {
188
+ export function replPath(path2) {
191
189
  return corePath(`repl/${path2 || ""}`);
192
190
  }
193
- function routerPath(path2) {
191
+ export function routerPath(path2) {
194
192
  return corePath(`router/${path2 || ""}`);
195
193
  }
196
- function routesPath(path2) {
194
+ export function routesPath(path2) {
197
195
  return projectPath(`routes/${path2 || ""}`);
198
196
  }
199
- function searchEnginePath(path2) {
197
+ export function searchEnginePath(path2) {
200
198
  return corePath(`search-engine/${path2 || ""}`);
201
199
  }
202
- function settingsPath(path2) {
200
+ export function settingsPath(path2) {
203
201
  return projectPath(`${path2 || "views/dashboard/settings"}`);
204
202
  }
205
- function scriptsPath(path2) {
203
+ export function scriptsPath(path2) {
206
204
  return frameworkPath(`scripts/${path2 || ""}`);
207
205
  }
208
- function schedulerPath(path2) {
206
+ export function schedulerPath(path2) {
209
207
  return corePath(`scheduler/${path2 || ""}`);
210
208
  }
211
- function signalsPath(path2) {
209
+ export function signalsPath(path2) {
212
210
  return corePath(`signals/${path2 || ""}`);
213
211
  }
214
- function slugPath(path2) {
212
+ export function slugPath(path2) {
215
213
  return corePath(`slug/${path2 || ""}`);
216
214
  }
217
- function smsPath(path2) {
215
+ export function smsPath(path2) {
218
216
  return corePath(`sms/${path2 || ""}`);
219
217
  }
220
- function storagePath(path2) {
218
+ export function storagePath(path2) {
221
219
  return corePath(`storage/${path2 || ""}`);
222
220
  }
223
- function storesPath(path2) {
221
+ export function storesPath(path2) {
224
222
  return resourcesPath(`stores/${path2 || ""}`);
225
223
  }
226
- function securityPath(path2) {
224
+ export function securityPath(path2) {
227
225
  return corePath(`security/${path2 || ""}`);
228
226
  }
229
- function serverPath(path2) {
227
+ export function serverPath(path2) {
230
228
  return corePath(`server/${path2 || ""}`);
231
229
  }
232
- function serverlessPath(path2) {
230
+ export function serverlessPath(path2) {
233
231
  return corePath(`serverless/${path2 || ""}`);
234
232
  }
235
- function stacksPath(path2) {
233
+ export function stacksPath(path2) {
236
234
  return frameworkPath(`src/${path2 || ""}`);
237
235
  }
238
- function stringsPath(path2) {
236
+ export function stringsPath(path2) {
239
237
  return corePath(`strings/${path2 || ""}`);
240
238
  }
241
- function testingPath(path2) {
239
+ export function testingPath(path2) {
242
240
  return corePath(`testing/${path2 || ""}`);
243
241
  }
244
- function tinkerPath(path2) {
242
+ export function tinkerPath(path2) {
245
243
  return corePath(`tinker/${path2 || ""}`);
246
244
  }
247
- function testsPath(path2) {
245
+ export function testsPath(path2) {
248
246
  return frameworkPath(`tests/${path2 || ""}`);
249
247
  }
250
- function typesPath(path2) {
248
+ export function typesPath(path2) {
251
249
  return corePath(`types/${path2 || ""}`);
252
250
  }
253
- function uiPath(path2) {
251
+ export function uiPath(path2) {
254
252
  return corePath(`ui/${path2 || ""}`);
255
253
  }
256
- function utilsPath(path2) {
254
+ export function utilsPath(path2) {
257
255
  return corePath(`utils/${path2 || ""}`);
258
256
  }
259
- function validationPath(path2) {
257
+ export function validationPath(path2) {
260
258
  return corePath(`validation/${path2 || ""}`);
261
259
  }
262
- function xRayPath(path2) {
260
+ export function xRayPath(path2) {
263
261
  return corePath(`x-ray/${path2 || ""}`);
264
262
  }
265
- const path = {
263
+ export const path = {
266
264
  aiPath,
267
265
  actionsPath,
268
266
  aliasPath,
@@ -359,5 +357,4 @@ const path = {
359
357
  sep,
360
358
  toNamespacedPath
361
359
  };
362
-
363
- export { actionsPath, aiPath, aliasPath, appPath, arraysPath, authPath, buildEnginePath, buildPath, cachePath, chatPath, cliPath, cloudPath, collectionsPath, componentsPath, configPath, corePath, customElementsDataPath, dashboardPath, databasePath, datetimePath, desktopPath, developmentPath, dnsPath, docsPath, emailPath, errorHandlingPath, eventsPath, examplesPath, fakerPath, frameworkPath, functionsPath, gitPath, healthPath, langPath, libraryEntryPath, libsEntriesPath, libsPath, lintPath, loggingPath, logsPath, modelsPath, modulesPath, notificationsPath, objectsPath, onboardingPath, ormPath, packageJsonPath, pagesPath, path, pathPath, paymentsPath, projectConfigPath, projectPath, projectStoragePath, pushPath, queryBuilderPath, queuePath, realtimePath, replPath, resourcesPath, routerPath, routesPath, runtimePath, schedulerPath, scriptsPath, searchEnginePath, securityPath, serverPath, serverlessPath, settingsPath, signalsPath, slugPath, smsPath, stacksPath, storagePath, storesPath, stringsPath, testingPath, testsPath, tinkerPath, typesPath, uiPath, utilsPath, validationPath, xRayPath };
360
+ export { basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.56.34",
4
+ "version": "0.57.2",
5
5
  "packageManager": "pnpm@8.6.5",
6
6
  "description": "The Stacks path.",
7
7
  "author": "Chris Breuer",