@stacksjs/path 0.46.4 → 0.48.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ import { basename, delimiter, dirname, extname, format, isAbsolute, join, normal
6
6
  *
7
7
  * @param path - relative path to the file or directory
8
8
  * @returns string - absolute path to the file or directory
9
+ *
9
10
  * @example
10
11
  * ```ts
11
12
  * import { aiPath } from '@stacks/paths'
@@ -50,6 +51,7 @@ export declare function buildPath(path?: string): any;
50
51
  export declare function buildEnginePath(path?: string): any;
51
52
  export declare function buildEntriesPath(path?: string): any;
52
53
  export declare function cachePath(path?: string): any;
54
+ export declare function chatPath(path?: string): any;
53
55
  export declare function cliPath(path?: string): any;
54
56
  export declare function collectionsPath(path?: string): any;
55
57
  export declare function componentsPath(path?: string): any;
@@ -61,6 +63,7 @@ export declare function docsPath(path?: string): any;
61
63
  export declare function domainsPath(path?: string): any;
62
64
  export declare function driversPath(path?: string): any;
63
65
  export declare function customElementsDataPath(): any;
66
+ export declare function emailPath(path?: string): any;
64
67
  export declare function errorHandlingPath(path?: string): any;
65
68
  export declare function examplesPath(type: 'vue-components' | 'web-components'): any;
66
69
  export declare function frameworkPath(path?: string): any;
@@ -79,8 +82,10 @@ export declare function packageJsonPath(type: 'vue-components' | 'web-components
79
82
  export declare function pagesPath(path?: string): any;
80
83
  export declare function pathPath(path?: string): any;
81
84
  export declare function projectPath(filePath?: string): any;
85
+ export declare function pushPath(path?: string): any;
82
86
  export declare function routerPath(path?: string): any;
83
87
  export declare function searchEnginePath(path?: string): any;
88
+ export declare function smsPath(path?: string): any;
84
89
  export declare function routesPath(path?: string): any;
85
90
  export declare function securityPath(path?: string): any;
86
91
  export declare function serverPath(path?: string): any;
@@ -88,6 +93,7 @@ export declare function serverlessPath(path?: string): any;
88
93
  export declare function stacksPath(path?: string): any;
89
94
  export declare function tablesPath(path?: string): any;
90
95
  export declare function testingPath(path?: string): any;
96
+ export declare function testsPath(path?: string): any;
91
97
  export declare function typesPath(path?: string): any;
92
98
  export declare function stringsPath(path?: string): any;
93
99
  export declare function scriptsPath(path?: string): any;
@@ -103,6 +109,7 @@ export declare const path: {
103
109
  buildEntriesPath: typeof buildEntriesPath;
104
110
  buildPath: typeof buildPath;
105
111
  cachePath: typeof cachePath;
112
+ chatPath: typeof chatPath;
106
113
  cliPath: typeof cliPath;
107
114
  collectionsPath: typeof collectionsPath;
108
115
  componentsPath: typeof componentsPath;
@@ -114,6 +121,7 @@ export declare const path: {
114
121
  docsPath: typeof docsPath;
115
122
  domainsPath: typeof domainsPath;
116
123
  driversPath: typeof driversPath;
124
+ emailPath: typeof emailPath;
117
125
  errorHandlingPath: typeof errorHandlingPath;
118
126
  examplesPath: typeof examplesPath;
119
127
  frameworkPath: typeof frameworkPath;
@@ -132,8 +140,10 @@ export declare const path: {
132
140
  pagesPath: typeof pagesPath;
133
141
  pathPath: typeof pathPath;
134
142
  projectPath: typeof projectPath;
143
+ pushPath: typeof pushPath;
135
144
  routerPath: typeof routerPath;
136
145
  searchEnginePath: typeof searchEnginePath;
146
+ smsPath: typeof smsPath;
137
147
  routesPath: typeof routesPath;
138
148
  scriptsPath: typeof scriptsPath;
139
149
  securityPath: typeof securityPath;
@@ -143,6 +153,7 @@ export declare const path: {
143
153
  stringsPath: typeof stringsPath;
144
154
  tablesPath: typeof tablesPath;
145
155
  testingPath: typeof testingPath;
156
+ testsPath: typeof testsPath;
146
157
  typesPath: typeof typesPath;
147
158
  uiPath: typeof uiPath;
148
159
  utilsPath: typeof utilsPath;
package/dist/index.mjs CHANGED
@@ -29,6 +29,9 @@ export function buildEntriesPath(path2) {
29
29
  export function cachePath(path2) {
30
30
  return corePath(`cache/${path2 || ""}`);
31
31
  }
32
+ export function chatPath(path2) {
33
+ return corePath(`chat/${path2 || ""}`);
34
+ }
32
35
  export function cliPath(path2) {
33
36
  return corePath(`cli/${path2 || ""}`);
34
37
  }
@@ -62,6 +65,9 @@ export function driversPath(path2) {
62
65
  export function customElementsDataPath() {
63
66
  return frameworkPath("custom-elements.json");
64
67
  }
68
+ export function emailPath(path2) {
69
+ return corePath(`email/${path2 || ""}`);
70
+ }
65
71
  export function errorHandlingPath(path2) {
66
72
  return corePath(`error-handling/${path2 || ""}`);
67
73
  }
@@ -131,12 +137,18 @@ export function projectPath(filePath = "") {
131
137
  path2 = resolve(path2, ".");
132
138
  return resolve(path2, filePath);
133
139
  }
140
+ export function pushPath(path2) {
141
+ return corePath(`push/${path2 || ""}`);
142
+ }
134
143
  export function routerPath(path2) {
135
144
  return corePath(`router/${path2 || ""}`);
136
145
  }
137
146
  export function searchEnginePath(path2) {
138
147
  return corePath(`search-engine/${path2 || ""}`);
139
148
  }
149
+ export function smsPath(path2) {
150
+ return corePath(`sms/${path2 || ""}`);
151
+ }
140
152
  export function routesPath(path2) {
141
153
  return projectPath(`routes/${path2 || ""}`);
142
154
  }
@@ -158,6 +170,9 @@ export function tablesPath(path2) {
158
170
  export function testingPath(path2) {
159
171
  return corePath(`testing/${path2 || ""}`);
160
172
  }
173
+ export function testsPath(path2) {
174
+ return frameworkPath(`tests/${path2 || ""}`);
175
+ }
161
176
  export function typesPath(path2) {
162
177
  return corePath(`types/${path2 || ""}`);
163
178
  }
@@ -183,6 +198,7 @@ export const path = {
183
198
  buildEntriesPath,
184
199
  buildPath,
185
200
  cachePath,
201
+ chatPath,
186
202
  cliPath,
187
203
  collectionsPath,
188
204
  componentsPath,
@@ -194,6 +210,7 @@ export const path = {
194
210
  docsPath,
195
211
  domainsPath,
196
212
  driversPath,
213
+ emailPath,
197
214
  errorHandlingPath,
198
215
  examplesPath,
199
216
  frameworkPath,
@@ -212,8 +229,10 @@ export const path = {
212
229
  pagesPath,
213
230
  pathPath,
214
231
  projectPath,
232
+ pushPath,
215
233
  routerPath,
216
234
  searchEnginePath,
235
+ smsPath,
217
236
  routesPath,
218
237
  scriptsPath,
219
238
  securityPath,
@@ -223,6 +242,7 @@ export const path = {
223
242
  stringsPath,
224
243
  tablesPath,
225
244
  testingPath,
245
+ testsPath,
226
246
  typesPath,
227
247
  uiPath,
228
248
  utilsPath,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.46.4",
5
- "packageManager": "pnpm@7.19.0",
4
+ "version": "0.48.1",
5
+ "packageManager": "pnpm@7.21.0",
6
6
  "description": "The Stacks path.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "engines": {
38
38
  "node": ">=v18.12.1",
39
- "pnpm": ">=7.19.0"
39
+ "pnpm": ">=7.21.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "pathe": "^1.0.0"
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "mkdist": "^1.0.0",
46
46
  "typescript": "^4.9.4",
47
- "@stacksjs/testing": "0.46.4"
47
+ "@stacksjs/testing": "0.48.1"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "mkdist -d",