@akanjs/cli 1.0.2 → 1.0.4-canary.0

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/cjs/index.js CHANGED
@@ -4623,11 +4623,14 @@ var ApplicationRunner = class {
4623
4623
  logLevel: "warning"
4624
4624
  });
4625
4625
  const rootPackageJson = app.workspace.getPackageJson();
4626
+ const baseNextConfig = akanConfig.frontend.nextConfig;
4627
+ const nextConfig = typeof baseNextConfig === "function" ? await baseNextConfig("build") : baseNextConfig;
4626
4628
  const dependencies = extractDependencies(buildResult.outputFiles, rootPackageJson, [
4627
4629
  "next",
4628
4630
  "react",
4629
4631
  "react-dom",
4630
- "typescript"
4632
+ "typescript",
4633
+ ...nextConfig.serverExternalPackages ?? []
4631
4634
  ]);
4632
4635
  buildResult.outputFiles.forEach((file) => app.dist.writeFile(file.path, file.text));
4633
4636
  const appPackageJson = {
@@ -4680,7 +4683,8 @@ var ApplicationRunner = class {
4680
4683
  minify: true,
4681
4684
  rollupOptions: {
4682
4685
  // ...(process.env.USE_AKANJS_PKGS === "true" ? {} : { external: ["next/server"] }),
4683
- input: `${app.cwdPath}/app/index.html`
4686
+ input: `${app.cwdPath}/app/index.html`,
4687
+ external: ["capacitor-cli.d.ts"]
4684
4688
  }
4685
4689
  },
4686
4690
  css: { postcss: `${app.cwdPath}/postcss.config.js` },
@@ -26,7 +26,6 @@ function getContent(scanInfo, dict) {
26
26
  return `
27
27
  import { serve } from "@akanjs/service";
28
28
 
29
- import * as cnst from "../cnst";
30
29
  import * as db from "../db";
31
30
 
32
31
  export class ${dict.Model}Service extends serve(db.${dict.model}, ({ use, service }) => ({})) {}
package/esm/index.js CHANGED
@@ -4604,11 +4604,14 @@ var ApplicationRunner = class {
4604
4604
  logLevel: "warning"
4605
4605
  });
4606
4606
  const rootPackageJson = app.workspace.getPackageJson();
4607
+ const baseNextConfig = akanConfig.frontend.nextConfig;
4608
+ const nextConfig = typeof baseNextConfig === "function" ? await baseNextConfig("build") : baseNextConfig;
4607
4609
  const dependencies = extractDependencies(buildResult.outputFiles, rootPackageJson, [
4608
4610
  "next",
4609
4611
  "react",
4610
4612
  "react-dom",
4611
- "typescript"
4613
+ "typescript",
4614
+ ...nextConfig.serverExternalPackages ?? []
4612
4615
  ]);
4613
4616
  buildResult.outputFiles.forEach((file) => app.dist.writeFile(file.path, file.text));
4614
4617
  const appPackageJson = {
@@ -4661,7 +4664,8 @@ var ApplicationRunner = class {
4661
4664
  minify: true,
4662
4665
  rollupOptions: {
4663
4666
  // ...(process.env.USE_AKANJS_PKGS === "true" ? {} : { external: ["next/server"] }),
4664
- input: `${app.cwdPath}/app/index.html`
4667
+ input: `${app.cwdPath}/app/index.html`,
4668
+ external: ["capacitor-cli.d.ts"]
4665
4669
  }
4666
4670
  },
4667
4671
  css: { postcss: `${app.cwdPath}/postcss.config.js` },
@@ -3,7 +3,6 @@ function getContent(scanInfo, dict) {
3
3
  return `
4
4
  import { serve } from "@akanjs/service";
5
5
 
6
- import * as cnst from "../cnst";
7
6
  import * as db from "../db";
8
7
 
9
8
  export class ${dict.Model}Service extends serve(db.${dict.model}, ({ use, service }) => ({})) {}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "sourceType": "module",
4
4
  "name": "@akanjs/cli",
5
- "version": "1.0.2",
5
+ "version": "1.0.4-canary.0",
6
6
  "bin": {
7
7
  "akan": "esm/index.js"
8
8
  },