@akanjs/cli 0.9.58-canary.0 → 0.9.58-canary.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.
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
 
19
- // pkgs/@akanjs/cli/src/templates/app/middleware.ts
20
- var middleware_exports = {};
21
- __export(middleware_exports, {
19
+ // pkgs/@akanjs/cli/src/templates/app/proxy.ts
20
+ var proxy_exports = {};
21
+ __export(proxy_exports, {
22
22
  default: () => getContent
23
23
  });
24
- module.exports = __toCommonJS(middleware_exports);
24
+ module.exports = __toCommonJS(proxy_exports);
25
25
  function getContent(scanInfo, dict) {
26
26
  return `
27
27
  import { createNextMiddleware } from "@akanjs/next";
@@ -30,6 +30,6 @@ export const config = {
30
30
  unstable_allowDynamic: ["/node_modules/reflect-metadata/**"],
31
31
  matcher: ["/((?!api|_next|.*\\\\..*).*)"],
32
32
  };
33
- export const middleware = createNextMiddleware();
33
+ export const proxy = createNextMiddleware();
34
34
  `;
35
35
  }
@@ -49,7 +49,7 @@ ${scalarModules.map((module2) => `export * from "./__scalar/${module2}/${module2
49
49
 
50
50
  ${databaseModules.map((module2) => {
51
51
  const names = { Module: capitalize(module2) };
52
- return `export const ${module2} = cnstOf("${module2}" as const, ${module2}Cnst.${names.Module}Input, ${module2}Cnst.${names.Module}, ${module2}Cnst.Light${names.Module}, ${module2}Cnst.${names.Module}Insight${extendedModelMap.has(module2) ? ", { overwrite: true }" : ""});`;
52
+ return `export const ${module2} = cnstOf("${module2}" as const, ${module2}Cnst.${names.Module}Input, ${module2}Cnst.${names.Module}Object, ${module2}Cnst.${names.Module}, ${module2}Cnst.Light${names.Module}, ${module2}Cnst.${names.Module}Insight${extendedModelMap.has(module2) ? ", { overwrite: true }" : ""});`;
53
53
  }).join("\n")}
54
54
  ${scalarModules.map((module2) => `export const ${module2} = scalarCnstOf("${module2}" as const, ${capitalize(module2)});`).join("\n")}
55
55
  `;
@@ -19,7 +19,13 @@ services:
19
19
  - 27017:27017
20
20
  volumes:
21
21
  - ./mongo/local/data:/data/db
22
- command: mongod --dbpath /data/db
22
+ entrypoint: >
23
+ bash -c "
24
+ mongod --dbpath /data/db --replSet rs0 --bind_ip_all --fork --logpath /var/log/mongodb.log &&
25
+ mongosh --eval 'rs.status().ok || rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"mongo:27017\"}]})' &&
26
+ mongosh --eval 'try { rs.status() } catch(e) { rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"mongo:27017\"}]}) }' &&
27
+ tail -f /var/log/mongodb.log
28
+ "
23
29
  networks:
24
30
  - <%= repoName %>-network
25
31
  meili: