@akanjs/cli 1.0.10 → 1.0.11

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
@@ -4779,6 +4779,25 @@ var ApplicationRunner = class {
4779
4779
  engines: { node: ">=20" },
4780
4780
  dependencies
4781
4781
  };
4782
+ if (process.env.USE_AKANJS_PKGS !== "true") {
4783
+ const serverAkanPkgs = [
4784
+ "@akanjs/base",
4785
+ "@akanjs/common",
4786
+ "@akanjs/constant",
4787
+ "@akanjs/dictionary",
4788
+ "@akanjs/document",
4789
+ "@akanjs/service",
4790
+ "@akanjs/signal",
4791
+ "@akanjs/nest",
4792
+ "@akanjs/server"
4793
+ ];
4794
+ const basePackageVersion = rootPackageJson.dependencies?.["@akanjs/base"];
4795
+ if (!basePackageVersion)
4796
+ throw new Error("@akanjs/base is not installed");
4797
+ serverAkanPkgs.forEach((pkg) => {
4798
+ Object.assign(appPackageJson.dependencies ?? {}, { [pkg]: basePackageVersion });
4799
+ });
4800
+ }
4782
4801
  app.dist.writeJson("backend/package.json", appPackageJson);
4783
4802
  app.dist.writeFile(import_path5.default.join(app.dist.cwdPath, "backend", "Dockerfile"), akanConfig.backend.docker.content);
4784
4803
  }
@@ -4841,6 +4860,24 @@ var ApplicationRunner = class {
4841
4860
  scripts: { start: "next start" },
4842
4861
  browserslist: "> 1%"
4843
4862
  };
4863
+ if (process.env.USE_AKANJS_PKGS !== "true") {
4864
+ const clientAkanPkgs = [
4865
+ "@akanjs/base",
4866
+ "@akanjs/common",
4867
+ "@akanjs/client",
4868
+ "@akanjs/config",
4869
+ "@akanjs/constant",
4870
+ "@akanjs/next",
4871
+ "@akanjs/store",
4872
+ "@akanjs/ui"
4873
+ ];
4874
+ const basePackageVersion = rootPackageJson.dependencies?.["@akanjs/base"];
4875
+ if (!basePackageVersion)
4876
+ throw new Error("@akanjs/base is not installed");
4877
+ clientAkanPkgs.forEach((pkg) => {
4878
+ Object.assign(appPackageJson.dependencies ?? {}, { [pkg]: basePackageVersion });
4879
+ });
4880
+ }
4844
4881
  app.dist.writeJson("frontend/package.json", appPackageJson);
4845
4882
  await Promise.all([
4846
4883
  app.cp(".next", import_path5.default.join(app.dist.cwdPath, "frontend", ".next")),
package/esm/index.js CHANGED
@@ -4760,6 +4760,25 @@ var ApplicationRunner = class {
4760
4760
  engines: { node: ">=20" },
4761
4761
  dependencies
4762
4762
  };
4763
+ if (process.env.USE_AKANJS_PKGS !== "true") {
4764
+ const serverAkanPkgs = [
4765
+ "@akanjs/base",
4766
+ "@akanjs/common",
4767
+ "@akanjs/constant",
4768
+ "@akanjs/dictionary",
4769
+ "@akanjs/document",
4770
+ "@akanjs/service",
4771
+ "@akanjs/signal",
4772
+ "@akanjs/nest",
4773
+ "@akanjs/server"
4774
+ ];
4775
+ const basePackageVersion = rootPackageJson.dependencies?.["@akanjs/base"];
4776
+ if (!basePackageVersion)
4777
+ throw new Error("@akanjs/base is not installed");
4778
+ serverAkanPkgs.forEach((pkg) => {
4779
+ Object.assign(appPackageJson.dependencies ?? {}, { [pkg]: basePackageVersion });
4780
+ });
4781
+ }
4763
4782
  app.dist.writeJson("backend/package.json", appPackageJson);
4764
4783
  app.dist.writeFile(path8.join(app.dist.cwdPath, "backend", "Dockerfile"), akanConfig.backend.docker.content);
4765
4784
  }
@@ -4822,6 +4841,24 @@ var ApplicationRunner = class {
4822
4841
  scripts: { start: "next start" },
4823
4842
  browserslist: "> 1%"
4824
4843
  };
4844
+ if (process.env.USE_AKANJS_PKGS !== "true") {
4845
+ const clientAkanPkgs = [
4846
+ "@akanjs/base",
4847
+ "@akanjs/common",
4848
+ "@akanjs/client",
4849
+ "@akanjs/config",
4850
+ "@akanjs/constant",
4851
+ "@akanjs/next",
4852
+ "@akanjs/store",
4853
+ "@akanjs/ui"
4854
+ ];
4855
+ const basePackageVersion = rootPackageJson.dependencies?.["@akanjs/base"];
4856
+ if (!basePackageVersion)
4857
+ throw new Error("@akanjs/base is not installed");
4858
+ clientAkanPkgs.forEach((pkg) => {
4859
+ Object.assign(appPackageJson.dependencies ?? {}, { [pkg]: basePackageVersion });
4860
+ });
4861
+ }
4825
4862
  app.dist.writeJson("frontend/package.json", appPackageJson);
4826
4863
  await Promise.all([
4827
4864
  app.cp(".next", path8.join(app.dist.cwdPath, "frontend", ".next")),
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.10",
5
+ "version": "1.0.11",
6
6
  "bin": {
7
7
  "akan": "esm/index.js"
8
8
  },