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