@stacksjs/config 0.61.20 → 0.61.21

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.js CHANGED
@@ -288,11 +288,6 @@ __export(exports_config, {
288
288
  return app2;
289
289
  }
290
290
  },
291
- api: () => {
292
- {
293
- return api;
294
- }
295
- },
296
291
  analytics: () => {
297
292
  {
298
293
  return analytics2;
@@ -693,7 +688,7 @@ var defaults_default = {
693
688
  description: "Your function library description.",
694
689
  keywords: ["functions", "composables", "library", "typescript", "javascript"],
695
690
  shouldGenerateSourcemap: false,
696
- functions: ["counter", "dark"]
691
+ files: ["counter", "dark"]
697
692
  }
698
693
  },
699
694
  logger: {
@@ -1150,7 +1145,9 @@ var sidebar = {
1150
1145
  }
1151
1146
  ]
1152
1147
  },
1153
- { text: "Build a Desktop App", link: "/bootcamp/desktop" }
1148
+ { text: "Build a Desktop App", link: "/bootcamp/desktop" },
1149
+ { text: "Build a System Tray App", link: "/bootcamp/system-tray" },
1150
+ { text: "Build a Mobile App", link: "/bootcamp/mobile" }
1154
1151
  ]
1155
1152
  },
1156
1153
  {
@@ -1225,7 +1222,7 @@ var sidebar = {
1225
1222
  collapsed: true,
1226
1223
  items: [
1227
1224
  {
1228
- text: "Frontend Development",
1225
+ text: "Frontend",
1229
1226
  collapsible: true,
1230
1227
  collapsed: true,
1231
1228
  items: [
@@ -1253,12 +1250,20 @@ var sidebar = {
1253
1250
  ]
1254
1251
  },
1255
1252
  {
1256
- text: "Backend Development",
1253
+ text: "Backend",
1257
1254
  collapsible: true,
1258
1255
  collapsed: true,
1259
1256
  items: [
1260
1257
  { text: "Authentication", link: "/guide/auth" },
1261
- { text: "Cache", link: "/packages/cache" },
1258
+ {
1259
+ text: "Cache",
1260
+ collapsible: true,
1261
+ collapsed: true,
1262
+ items: [
1263
+ { text: "Drivers", link: "/guide/cache/drivers" },
1264
+ { text: "Build a Custom Driver", link: "/guide/cache/build-custom-driver" }
1265
+ ]
1266
+ },
1262
1267
  { text: "Database", link: "/packages/database" },
1263
1268
  { text: "Error Handling", link: "/packages/error-handling" },
1264
1269
  { text: "Events", link: "/packages/events" },
@@ -1282,13 +1287,29 @@ var sidebar = {
1282
1287
  { text: "Realtime", link: "/packages/realtime" },
1283
1288
  { text: "Router", link: "/packages/router" },
1284
1289
  { text: "Scheduler", link: "/packages/scheduler" },
1285
- { text: "Search Engine", link: "/packages/search-engine" },
1286
- { text: "Storage", link: "/packages/storage" },
1290
+ {
1291
+ text: "Search Engine",
1292
+ collapsible: true,
1293
+ collapsed: true,
1294
+ items: [
1295
+ { text: "Drivers", link: "/guide/search-engine/drivers" },
1296
+ { text: "Build a Custom Driver", link: "/guide/search-engine/build-custom-driver" }
1297
+ ]
1298
+ },
1299
+ {
1300
+ text: "Storage",
1301
+ collapsible: true,
1302
+ collapsed: true,
1303
+ items: [
1304
+ { text: "Drivers", link: "/guide/storage/drivers" },
1305
+ { text: "Build a Custom Driver", link: "/guide/storage/build-custom-driver" }
1306
+ ]
1307
+ },
1287
1308
  { text: "Validation", link: "/packages/validation" }
1288
1309
  ]
1289
1310
  },
1290
1311
  {
1291
- text: "Cloud Development",
1312
+ text: "Cloud",
1292
1313
  collapsible: true,
1293
1314
  collapsed: true,
1294
1315
  items: [
@@ -1297,7 +1318,7 @@ var sidebar = {
1297
1318
  ]
1298
1319
  },
1299
1320
  {
1300
- text: "Library Development",
1321
+ text: "Library",
1301
1322
  collapsible: true,
1302
1323
  collapsed: true,
1303
1324
  items: [
@@ -1310,7 +1331,7 @@ var sidebar = {
1310
1331
  ]
1311
1332
  },
1312
1333
  {
1313
- text: "CLI Development",
1334
+ text: "CLI",
1314
1335
  collapsible: true,
1315
1336
  collapsed: true,
1316
1337
  items: [
@@ -2183,7 +2204,6 @@ var config = {
2183
2204
  var {
2184
2205
  ai: ai2,
2185
2206
  analytics: analytics2,
2186
- api,
2187
2207
  app: app2,
2188
2208
  cache: cache2,
2189
2209
  cloud: cloud2,
@@ -2217,6 +2237,8 @@ var determineAppEnv = () => {
2217
2237
  return "stage";
2218
2238
  if (app2.env === "production")
2219
2239
  return "prod";
2240
+ if (!app2.env)
2241
+ throw new Error("Couldn't determine app environment");
2220
2242
  return app2.env;
2221
2243
  };
2222
2244
  export {
@@ -2275,7 +2297,6 @@ export {
2275
2297
  cli2 as cli,
2276
2298
  cache2 as cache,
2277
2299
  app2 as app,
2278
- api,
2279
2300
  analytics2 as analytics,
2280
2301
  ai2 as ai
2281
2302
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/config",
3
3
  "type": "module",
4
- "version": "0.61.20",
4
+ "version": "0.61.21",
5
5
  "description": "The Stacks config helper methods.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/config.ts CHANGED
@@ -11,7 +11,6 @@ export const config: StacksOptions = {
11
11
  export const {
12
12
  ai,
13
13
  analytics,
14
- api,
15
14
  app,
16
15
  cache,
17
16
  cloud,
@@ -47,5 +46,7 @@ export const determineAppEnv = (): string => {
47
46
  if (app.env === 'staging') return 'stage'
48
47
  if (app.env === 'production') return 'prod'
49
48
 
49
+ if (!app.env) throw new Error("Couldn't determine app environment")
50
+
50
51
  return app.env
51
52
  }
package/src/defaults.ts CHANGED
@@ -456,7 +456,7 @@ export default {
456
456
  description: 'Your function library description.',
457
457
  keywords: ['functions', 'composables', 'library', 'typescript', 'javascript'],
458
458
  shouldGenerateSourcemap: false,
459
- functions: ['counter', 'dark'],
459
+ files: ['counter', 'dark'],
460
460
  },
461
461
  },
462
462