@stacksjs/path 0.52.10 → 0.56.3

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
@@ -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 buildEntriesPath(path2) {
33
- return buildPath(`entries/${path2 || ""}`);
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 || ""}`);
@@ -48,23 +51,26 @@ function collectionsPath(path2) {
48
51
  return corePath(`collections/${path2 || ""}`);
49
52
  }
50
53
  function componentsPath(path2) {
51
- return projectPath(`components/${path2 || ""}`);
54
+ return resourcesPath(`components/${path2 || ""}`);
52
55
  }
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 domainsPath(path2) {
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,32 +92,29 @@ 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 storagePath(path2) {
105
- return corePath(`storage/${path2 || ""}`);
104
+ function healthPath(path2) {
105
+ return corePath(`health/${path2 || ""}`);
106
106
  }
107
107
  function functionsPath(path2) {
108
- return projectPath(`functions/${path2 || ""}`);
108
+ return resourcesPath(`functions/${path2 || ""}`);
109
109
  }
110
110
  function gitPath(path2) {
111
111
  return corePath(`git/${path2 || ""}`);
112
112
  }
113
113
  function langPath(path2) {
114
- return projectPath(`lang/${path2 || ""}`);
114
+ return resourcesPath(`lang/${path2 || ""}`);
115
115
  }
116
116
  function libraryEntryPath(type) {
117
- return buildEntriesPath(`${type}.ts`);
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 xRayPath(path2) {
126
- return corePath(`x-ray/${path2 || ""}`);
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 || "pages/dashboard/onboarding"}`);
144
+ return projectPath(`${path2 || "views/dashboard/onboarding"}`);
145
145
  }
146
146
  function packageJsonPath(type) {
147
147
  if (type === "vue-components")
@@ -153,7 +153,7 @@ function packageJsonPath(type) {
153
153
  return frameworkPath(`${type}/package.json`);
154
154
  }
155
155
  function pagesPath(path2) {
156
- return appPath(`pages/${path2 || ""}`);
156
+ return resourcesPath(`pages/${path2 || ""}`);
157
157
  }
158
158
  function pathPath(path2) {
159
159
  return corePath(`path/${path2 || ""}`);
@@ -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 || "pages/dashboard/settings"}`);
201
+ return projectPath(`${path2 || "views/dashboard/settings"}`);
190
202
  }
191
- function smsPath(path2) {
192
- return corePath(`sms/${path2 || ""}`);
203
+ function scriptsPath(path2) {
204
+ return frameworkPath(`scripts/${path2 || ""}`);
193
205
  }
194
206
  function schedulerPath(path2) {
195
207
  return corePath(`scheduler/${path2 || ""}`);
@@ -197,8 +209,17 @@ function schedulerPath(path2) {
197
209
  function signalsPath(path2) {
198
210
  return corePath(`signals/${path2 || ""}`);
199
211
  }
200
- function routesPath(path2) {
201
- return projectPath(`routes/${path2 || ""}`);
212
+ function slugPath(path2) {
213
+ return corePath(`slug/${path2 || ""}`);
214
+ }
215
+ function smsPath(path2) {
216
+ return corePath(`sms/${path2 || ""}`);
217
+ }
218
+ function storagePath(path2) {
219
+ return corePath(`storage/${path2 || ""}`);
220
+ }
221
+ function storesPath(path2) {
222
+ return resourcesPath(`stores/${path2 || ""}`);
202
223
  }
203
224
  function securityPath(path2) {
204
225
  return corePath(`security/${path2 || ""}`);
@@ -212,8 +233,8 @@ function serverlessPath(path2) {
212
233
  function stacksPath(path2) {
213
234
  return frameworkPath(`src/${path2 || ""}`);
214
235
  }
215
- function tablesPath(path2) {
216
- return corePath(`tables/${path2 || ""}`);
236
+ function stringsPath(path2) {
237
+ return corePath(`strings/${path2 || ""}`);
217
238
  }
218
239
  function testingPath(path2) {
219
240
  return corePath(`testing/${path2 || ""}`);
@@ -224,12 +245,6 @@ function testsPath(path2) {
224
245
  function typesPath(path2) {
225
246
  return corePath(`types/${path2 || ""}`);
226
247
  }
227
- function stringsPath(path2) {
228
- return corePath(`strings/${path2 || ""}`);
229
- }
230
- function scriptsPath(path2) {
231
- return frameworkPath(`scripts/${path2 || ""}`);
232
- }
233
248
  function uiPath(path2) {
234
249
  return corePath(`ui/${path2 || ""}`);
235
250
  }
@@ -239,6 +254,9 @@ function utilsPath(path2) {
239
254
  function validationPath(path2) {
240
255
  return corePath(`validation/${path2 || ""}`);
241
256
  }
257
+ function xRayPath(path2) {
258
+ return corePath(`x-ray/${path2 || ""}`);
259
+ }
242
260
  const path = {
243
261
  aiPath,
244
262
  actionsPath,
@@ -247,7 +265,7 @@ const path = {
247
265
  appPath,
248
266
  authPath,
249
267
  buildEnginePath,
250
- buildEntriesPath,
268
+ libsEntriesPath,
251
269
  buildPath,
252
270
  cachePath,
253
271
  chatPath,
@@ -256,15 +274,16 @@ const path = {
256
274
  collectionsPath,
257
275
  componentsPath,
258
276
  configPath,
259
- userConfigPath,
277
+ projectConfigPath,
260
278
  corePath,
261
279
  customElementsDataPath,
262
280
  databasePath,
281
+ datetimePath,
263
282
  developmentPath,
264
283
  dashboardPath,
265
284
  desktopPath,
266
285
  docsPath,
267
- domainsPath,
286
+ dnsPath,
268
287
  emailPath,
269
288
  errorHandlingPath,
270
289
  eventsPath,
@@ -276,6 +295,7 @@ const path = {
276
295
  functionsPath,
277
296
  gitPath,
278
297
  langPath,
298
+ libsPath,
279
299
  libraryEntryPath,
280
300
  lintPath,
281
301
  loggingPath,
@@ -293,6 +313,7 @@ const path = {
293
313
  queryBuilderPath,
294
314
  queuePath,
295
315
  realtimePath,
316
+ resourcesPath,
296
317
  routerPath,
297
318
  routesPath,
298
319
  searchEnginePath,
@@ -300,13 +321,14 @@ const path = {
300
321
  settingsPath,
301
322
  smsPath,
302
323
  signalsPath,
324
+ slugPath,
303
325
  scriptsPath,
304
326
  securityPath,
305
327
  serverPath,
306
328
  serverlessPath,
307
329
  stacksPath,
308
330
  stringsPath,
309
- tablesPath,
331
+ storesPath,
310
332
  testingPath,
311
333
  testsPath,
312
334
  typesPath,
@@ -352,7 +374,6 @@ exports.appPath = appPath;
352
374
  exports.arraysPath = arraysPath;
353
375
  exports.authPath = authPath;
354
376
  exports.buildEnginePath = buildEnginePath;
355
- exports.buildEntriesPath = buildEntriesPath;
356
377
  exports.buildPath = buildPath;
357
378
  exports.cachePath = cachePath;
358
379
  exports.chatPath = chatPath;
@@ -365,10 +386,11 @@ exports.corePath = corePath;
365
386
  exports.customElementsDataPath = customElementsDataPath;
366
387
  exports.dashboardPath = dashboardPath;
367
388
  exports.databasePath = databasePath;
389
+ exports.datetimePath = datetimePath;
368
390
  exports.desktopPath = desktopPath;
369
391
  exports.developmentPath = developmentPath;
392
+ exports.dnsPath = dnsPath;
370
393
  exports.docsPath = docsPath;
371
- exports.domainsPath = domainsPath;
372
394
  exports.emailPath = emailPath;
373
395
  exports.errorHandlingPath = errorHandlingPath;
374
396
  exports.eventsPath = eventsPath;
@@ -380,8 +402,11 @@ exports.gitPath = gitPath;
380
402
  exports.healthPath = healthPath;
381
403
  exports.langPath = langPath;
382
404
  exports.libraryEntryPath = libraryEntryPath;
405
+ exports.libsEntriesPath = libsEntriesPath;
406
+ exports.libsPath = libsPath;
383
407
  exports.lintPath = lintPath;
384
408
  exports.loggingPath = loggingPath;
409
+ exports.logsPath = logsPath;
385
410
  exports.modelsPath = modelsPath;
386
411
  exports.modulesPath = modulesPath;
387
412
  exports.notificationsPath = notificationsPath;
@@ -393,11 +418,14 @@ exports.pagesPath = pagesPath;
393
418
  exports.path = path;
394
419
  exports.pathPath = pathPath;
395
420
  exports.paymentsPath = paymentsPath;
421
+ exports.projectConfigPath = projectConfigPath;
396
422
  exports.projectPath = projectPath;
423
+ exports.projectStoragePath = projectStoragePath;
397
424
  exports.pushPath = pushPath;
398
425
  exports.queryBuilderPath = queryBuilderPath;
399
426
  exports.queuePath = queuePath;
400
427
  exports.realtimePath = realtimePath;
428
+ exports.resourcesPath = resourcesPath;
401
429
  exports.routerPath = routerPath;
402
430
  exports.routesPath = routesPath;
403
431
  exports.runtimePath = runtimePath;
@@ -409,16 +437,16 @@ exports.serverPath = serverPath;
409
437
  exports.serverlessPath = serverlessPath;
410
438
  exports.settingsPath = settingsPath;
411
439
  exports.signalsPath = signalsPath;
440
+ exports.slugPath = slugPath;
412
441
  exports.smsPath = smsPath;
413
442
  exports.stacksPath = stacksPath;
414
443
  exports.storagePath = storagePath;
444
+ exports.storesPath = storesPath;
415
445
  exports.stringsPath = stringsPath;
416
- exports.tablesPath = tablesPath;
417
446
  exports.testingPath = testingPath;
418
447
  exports.testsPath = testsPath;
419
448
  exports.typesPath = typesPath;
420
449
  exports.uiPath = uiPath;
421
- exports.userConfigPath = userConfigPath;
422
450
  exports.utilsPath = utilsPath;
423
451
  exports.validationPath = validationPath;
424
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 `ai` directory. The AI directory
7
- * contains the core Stacks' AI logic which currently
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 { aiPath } from '@stacks/paths'
13
+ * import { buildPath } from '@stacks/paths'
16
14
  *
17
- * console.log('path is', aiPath())
18
- * // path is /Users/chrisbreuer/Code/stacks/.stacks/core/ai
15
+ * buildPath('functions.vue')
16
+ * buildPath('any-path.ts')
19
17
  * ```
20
18
  */
21
- declare function aiPath(path?: string): string;
19
+ declare function actionsPath(path?: string): string;
22
20
  /**
23
- * Returns the path to the `actions` directory. The actions directory
24
- * contains the core Stacks' actions. An action
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 { buildPath } from '@stacks/paths'
30
+ * import { aiPath } from '@stacks/paths'
31
31
  *
32
- * buildPath('functions.vue')
33
- * buildPath('any-path.ts')
32
+ * console.log('path is', aiPath())
33
+ * // path is /Users/chrisbreuer/Code/stacks/.stacks/core/ai
34
34
  * ```
35
35
  */
36
- declare function actionsPath(path?: string): string;
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 buildEntriesPath(path?: string): string;
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 domainsPath(path?: string): string;
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 storagePath(path?: string): string;
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
- declare function libraryEntryPath(type: 'vue-components' | 'web-components' | 'functions'): string;
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 xRayPath(path?: string): string;
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,30 +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 smsPath(path?: string): string;
111
+ declare function scriptsPath(path?: string): string;
107
112
  declare function schedulerPath(path?: string): string;
108
113
  declare function signalsPath(path?: string): string;
109
- declare function routesPath(path?: string): string;
114
+ declare function slugPath(path?: string): string;
115
+ declare function smsPath(path?: string): string;
116
+ declare function storagePath(path?: string): string;
117
+ declare function storesPath(path?: string): string;
110
118
  declare function securityPath(path?: string): string;
111
119
  declare function serverPath(path?: string): string;
112
120
  declare function serverlessPath(path?: string): string;
113
121
  declare function stacksPath(path?: string): string;
114
- declare function tablesPath(path?: string): string;
122
+ declare function stringsPath(path?: string): string;
115
123
  declare function testingPath(path?: string): string;
116
124
  declare function testsPath(path?: string): string;
117
125
  declare function typesPath(path?: string): string;
118
- declare function stringsPath(path?: string): string;
119
- declare function scriptsPath(path?: string): string;
120
126
  declare function uiPath(path?: string): string;
121
127
  declare function utilsPath(path?: string): string;
122
128
  declare function validationPath(path?: string): string;
129
+ declare function xRayPath(path?: string): string;
123
130
  declare const path: {
124
131
  aiPath: typeof aiPath;
125
132
  actionsPath: typeof actionsPath;
@@ -128,7 +135,7 @@ declare const path: {
128
135
  appPath: typeof appPath;
129
136
  authPath: typeof authPath;
130
137
  buildEnginePath: typeof buildEnginePath;
131
- buildEntriesPath: typeof buildEntriesPath;
138
+ libsEntriesPath: typeof libsEntriesPath;
132
139
  buildPath: typeof buildPath;
133
140
  cachePath: typeof cachePath;
134
141
  chatPath: typeof chatPath;
@@ -137,15 +144,16 @@ declare const path: {
137
144
  collectionsPath: typeof collectionsPath;
138
145
  componentsPath: typeof componentsPath;
139
146
  configPath: typeof configPath;
140
- userConfigPath: typeof userConfigPath;
147
+ projectConfigPath: typeof projectConfigPath;
141
148
  corePath: typeof corePath;
142
149
  customElementsDataPath: typeof customElementsDataPath;
143
150
  databasePath: typeof databasePath;
151
+ datetimePath: typeof datetimePath;
144
152
  developmentPath: typeof developmentPath;
145
153
  dashboardPath: typeof dashboardPath;
146
154
  desktopPath: typeof desktopPath;
147
155
  docsPath: typeof docsPath;
148
- domainsPath: typeof domainsPath;
156
+ dnsPath: typeof dnsPath;
149
157
  emailPath: typeof emailPath;
150
158
  errorHandlingPath: typeof errorHandlingPath;
151
159
  eventsPath: typeof eventsPath;
@@ -157,6 +165,7 @@ declare const path: {
157
165
  functionsPath: typeof functionsPath;
158
166
  gitPath: typeof gitPath;
159
167
  langPath: typeof langPath;
168
+ libsPath: typeof libsPath;
160
169
  libraryEntryPath: typeof libraryEntryPath;
161
170
  lintPath: typeof lintPath;
162
171
  loggingPath: typeof loggingPath;
@@ -174,6 +183,7 @@ declare const path: {
174
183
  queryBuilderPath: typeof queryBuilderPath;
175
184
  queuePath: typeof queuePath;
176
185
  realtimePath: typeof realtimePath;
186
+ resourcesPath: typeof resourcesPath;
177
187
  routerPath: typeof routerPath;
178
188
  routesPath: typeof routesPath;
179
189
  searchEnginePath: typeof searchEnginePath;
@@ -181,13 +191,14 @@ declare const path: {
181
191
  settingsPath: typeof settingsPath;
182
192
  smsPath: typeof smsPath;
183
193
  signalsPath: typeof signalsPath;
194
+ slugPath: typeof slugPath;
184
195
  scriptsPath: typeof scriptsPath;
185
196
  securityPath: typeof securityPath;
186
197
  serverPath: typeof serverPath;
187
198
  serverlessPath: typeof serverlessPath;
188
199
  stacksPath: typeof stacksPath;
189
200
  stringsPath: typeof stringsPath;
190
- tablesPath: typeof tablesPath;
201
+ storesPath: typeof storesPath;
191
202
  testingPath: typeof testingPath;
192
203
  testsPath: typeof testsPath;
193
204
  typesPath: typeof typesPath;
@@ -211,4 +222,4 @@ declare const path: {
211
222
  toNamespacedPath: (path: string) => string;
212
223
  };
213
224
 
214
- export { actionsPath, aiPath, aliasPath, appPath, arraysPath, authPath, buildEnginePath, buildEntriesPath, buildPath, cachePath, chatPath, cliPath, cloudPath, collectionsPath, componentsPath, configPath, corePath, customElementsDataPath, dashboardPath, databasePath, desktopPath, developmentPath, docsPath, domainsPath, emailPath, errorHandlingPath, eventsPath, examplesPath, fakerPath, frameworkPath, functionsPath, gitPath, healthPath, langPath, libraryEntryPath, lintPath, loggingPath, modelsPath, modulesPath, notificationsPath, objectsPath, onboardingPath, ormPath, packageJsonPath, pagesPath, path, pathPath, paymentsPath, projectPath, pushPath, queryBuilderPath, queuePath, realtimePath, routerPath, routesPath, runtimePath, schedulerPath, scriptsPath, searchEnginePath, securityPath, serverPath, serverlessPath, settingsPath, signalsPath, smsPath, stacksPath, storagePath, stringsPath, tablesPath, testingPath, testsPath, typesPath, uiPath, userConfigPath, utilsPath, validationPath, xRayPath };
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 buildEntriesPath(path2) {
32
- return buildPath(`entries/${path2 || ""}`);
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 || ""}`);
@@ -47,23 +50,26 @@ function collectionsPath(path2) {
47
50
  return corePath(`collections/${path2 || ""}`);
48
51
  }
49
52
  function componentsPath(path2) {
50
- return projectPath(`components/${path2 || ""}`);
53
+ return resourcesPath(`components/${path2 || ""}`);
51
54
  }
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 domainsPath(path2) {
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,32 +91,29 @@ 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 storagePath(path2) {
104
- return corePath(`storage/${path2 || ""}`);
103
+ function healthPath(path2) {
104
+ return corePath(`health/${path2 || ""}`);
105
105
  }
106
106
  function functionsPath(path2) {
107
- return projectPath(`functions/${path2 || ""}`);
107
+ return resourcesPath(`functions/${path2 || ""}`);
108
108
  }
109
109
  function gitPath(path2) {
110
110
  return corePath(`git/${path2 || ""}`);
111
111
  }
112
112
  function langPath(path2) {
113
- return projectPath(`lang/${path2 || ""}`);
113
+ return resourcesPath(`lang/${path2 || ""}`);
114
114
  }
115
115
  function libraryEntryPath(type) {
116
- return buildEntriesPath(`${type}.ts`);
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 xRayPath(path2) {
125
- return corePath(`x-ray/${path2 || ""}`);
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 || "pages/dashboard/onboarding"}`);
143
+ return projectPath(`${path2 || "views/dashboard/onboarding"}`);
144
144
  }
145
145
  function packageJsonPath(type) {
146
146
  if (type === "vue-components")
@@ -152,7 +152,7 @@ function packageJsonPath(type) {
152
152
  return frameworkPath(`${type}/package.json`);
153
153
  }
154
154
  function pagesPath(path2) {
155
- return appPath(`pages/${path2 || ""}`);
155
+ return resourcesPath(`pages/${path2 || ""}`);
156
156
  }
157
157
  function pathPath(path2) {
158
158
  return corePath(`path/${path2 || ""}`);
@@ -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 || "pages/dashboard/settings"}`);
200
+ return projectPath(`${path2 || "views/dashboard/settings"}`);
189
201
  }
190
- function smsPath(path2) {
191
- return corePath(`sms/${path2 || ""}`);
202
+ function scriptsPath(path2) {
203
+ return frameworkPath(`scripts/${path2 || ""}`);
192
204
  }
193
205
  function schedulerPath(path2) {
194
206
  return corePath(`scheduler/${path2 || ""}`);
@@ -196,8 +208,17 @@ function schedulerPath(path2) {
196
208
  function signalsPath(path2) {
197
209
  return corePath(`signals/${path2 || ""}`);
198
210
  }
199
- function routesPath(path2) {
200
- return projectPath(`routes/${path2 || ""}`);
211
+ function slugPath(path2) {
212
+ return corePath(`slug/${path2 || ""}`);
213
+ }
214
+ function smsPath(path2) {
215
+ return corePath(`sms/${path2 || ""}`);
216
+ }
217
+ function storagePath(path2) {
218
+ return corePath(`storage/${path2 || ""}`);
219
+ }
220
+ function storesPath(path2) {
221
+ return resourcesPath(`stores/${path2 || ""}`);
201
222
  }
202
223
  function securityPath(path2) {
203
224
  return corePath(`security/${path2 || ""}`);
@@ -211,8 +232,8 @@ function serverlessPath(path2) {
211
232
  function stacksPath(path2) {
212
233
  return frameworkPath(`src/${path2 || ""}`);
213
234
  }
214
- function tablesPath(path2) {
215
- return corePath(`tables/${path2 || ""}`);
235
+ function stringsPath(path2) {
236
+ return corePath(`strings/${path2 || ""}`);
216
237
  }
217
238
  function testingPath(path2) {
218
239
  return corePath(`testing/${path2 || ""}`);
@@ -223,12 +244,6 @@ function testsPath(path2) {
223
244
  function typesPath(path2) {
224
245
  return corePath(`types/${path2 || ""}`);
225
246
  }
226
- function stringsPath(path2) {
227
- return corePath(`strings/${path2 || ""}`);
228
- }
229
- function scriptsPath(path2) {
230
- return frameworkPath(`scripts/${path2 || ""}`);
231
- }
232
247
  function uiPath(path2) {
233
248
  return corePath(`ui/${path2 || ""}`);
234
249
  }
@@ -238,6 +253,9 @@ function utilsPath(path2) {
238
253
  function validationPath(path2) {
239
254
  return corePath(`validation/${path2 || ""}`);
240
255
  }
256
+ function xRayPath(path2) {
257
+ return corePath(`x-ray/${path2 || ""}`);
258
+ }
241
259
  const path = {
242
260
  aiPath,
243
261
  actionsPath,
@@ -246,7 +264,7 @@ const path = {
246
264
  appPath,
247
265
  authPath,
248
266
  buildEnginePath,
249
- buildEntriesPath,
267
+ libsEntriesPath,
250
268
  buildPath,
251
269
  cachePath,
252
270
  chatPath,
@@ -255,15 +273,16 @@ const path = {
255
273
  collectionsPath,
256
274
  componentsPath,
257
275
  configPath,
258
- userConfigPath,
276
+ projectConfigPath,
259
277
  corePath,
260
278
  customElementsDataPath,
261
279
  databasePath,
280
+ datetimePath,
262
281
  developmentPath,
263
282
  dashboardPath,
264
283
  desktopPath,
265
284
  docsPath,
266
- domainsPath,
285
+ dnsPath,
267
286
  emailPath,
268
287
  errorHandlingPath,
269
288
  eventsPath,
@@ -275,6 +294,7 @@ const path = {
275
294
  functionsPath,
276
295
  gitPath,
277
296
  langPath,
297
+ libsPath,
278
298
  libraryEntryPath,
279
299
  lintPath,
280
300
  loggingPath,
@@ -292,6 +312,7 @@ const path = {
292
312
  queryBuilderPath,
293
313
  queuePath,
294
314
  realtimePath,
315
+ resourcesPath,
295
316
  routerPath,
296
317
  routesPath,
297
318
  searchEnginePath,
@@ -299,13 +320,14 @@ const path = {
299
320
  settingsPath,
300
321
  smsPath,
301
322
  signalsPath,
323
+ slugPath,
302
324
  scriptsPath,
303
325
  securityPath,
304
326
  serverPath,
305
327
  serverlessPath,
306
328
  stacksPath,
307
329
  stringsPath,
308
- tablesPath,
330
+ storesPath,
309
331
  testingPath,
310
332
  testsPath,
311
333
  typesPath,
@@ -330,4 +352,4 @@ const path = {
330
352
  toNamespacedPath
331
353
  };
332
354
 
333
- export { actionsPath, aiPath, aliasPath, appPath, arraysPath, authPath, buildEnginePath, buildEntriesPath, buildPath, cachePath, chatPath, cliPath, cloudPath, collectionsPath, componentsPath, configPath, corePath, customElementsDataPath, dashboardPath, databasePath, desktopPath, developmentPath, docsPath, domainsPath, emailPath, errorHandlingPath, eventsPath, examplesPath, fakerPath, frameworkPath, functionsPath, gitPath, healthPath, langPath, libraryEntryPath, lintPath, loggingPath, modelsPath, modulesPath, notificationsPath, objectsPath, onboardingPath, ormPath, packageJsonPath, pagesPath, path, pathPath, paymentsPath, projectPath, pushPath, queryBuilderPath, queuePath, realtimePath, routerPath, routesPath, runtimePath, schedulerPath, scriptsPath, searchEnginePath, securityPath, serverPath, serverlessPath, settingsPath, signalsPath, smsPath, stacksPath, storagePath, stringsPath, tablesPath, testingPath, testsPath, typesPath, uiPath, userConfigPath, utilsPath, validationPath, xRayPath };
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.52.10",
5
- "packageManager": "pnpm@8.5.1",
4
+ "version": "0.56.3",
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.0"
45
+ "pathe": "^1.1.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@stacksjs/alias": "0.52.10",
49
- "@stacksjs/development": "0.52.10"
48
+ "@stacksjs/development": "0.56.3"
50
49
  },
51
50
  "scripts": {
52
51
  "build": "unbuild",