@akanjs/cli 0.0.132 → 0.0.134

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
@@ -4801,7 +4801,7 @@ var ApplicationRunner = class {
4801
4801
  const { env } = await this.#prepareCommand(app, command, "csr");
4802
4802
  const tsconfig = app.workspace.getTsConfig();
4803
4803
  const processEnv = env;
4804
- const akanjsPrefix = process.env.USE_AKANJS_PKGS === "true" ? `${app.workspace.workspaceRoot}/pkgs/` : `${app.workspace.workspaceRoot}/pkgs/`;
4804
+ const akanjsPrefix = process.env.USE_AKANJS_PKGS === "true" ? `${app.workspace.workspaceRoot}/pkgs/` : "";
4805
4805
  const config = vite.defineConfig({
4806
4806
  root: `${app.cwdPath}/app`,
4807
4807
  base: "/",
@@ -4809,7 +4809,10 @@ var ApplicationRunner = class {
4809
4809
  outDir: `${app.dist.cwdPath}/csr`,
4810
4810
  sourcemap: false,
4811
4811
  emptyOutDir: true,
4812
- rollupOptions: { input: `${app.cwdPath}/app/index.html` }
4812
+ rollupOptions: {
4813
+ // ...(process.env.USE_AKANJS_PKGS === "true" ? {} : { external: ["next/server"] }),
4814
+ input: `${app.cwdPath}/app/index.html`
4815
+ }
4813
4816
  },
4814
4817
  css: { postcss: `${app.cwdPath}/postcss.config.js` },
4815
4818
  publicDir: `${app.cwdPath}/public`,
package/esm/index.js CHANGED
@@ -4788,7 +4788,7 @@ var ApplicationRunner = class {
4788
4788
  const { env } = await this.#prepareCommand(app, command, "csr");
4789
4789
  const tsconfig = app.workspace.getTsConfig();
4790
4790
  const processEnv = env;
4791
- const akanjsPrefix = process.env.USE_AKANJS_PKGS === "true" ? `${app.workspace.workspaceRoot}/pkgs/` : `${app.workspace.workspaceRoot}/pkgs/`;
4791
+ const akanjsPrefix = process.env.USE_AKANJS_PKGS === "true" ? `${app.workspace.workspaceRoot}/pkgs/` : "";
4792
4792
  const config = vite.defineConfig({
4793
4793
  root: `${app.cwdPath}/app`,
4794
4794
  base: "/",
@@ -4796,7 +4796,10 @@ var ApplicationRunner = class {
4796
4796
  outDir: `${app.dist.cwdPath}/csr`,
4797
4797
  sourcemap: false,
4798
4798
  emptyOutDir: true,
4799
- rollupOptions: { input: `${app.cwdPath}/app/index.html` }
4799
+ rollupOptions: {
4800
+ // ...(process.env.USE_AKANJS_PKGS === "true" ? {} : { external: ["next/server"] }),
4801
+ input: `${app.cwdPath}/app/index.html`
4802
+ }
4800
4803
  },
4801
4804
  css: { postcss: `${app.cwdPath}/postcss.config.js` },
4802
4805
  publicDir: `${app.cwdPath}/public`,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sourceType": "module",
3
3
  "name": "@akanjs/cli",
4
- "version": "0.0.132",
4
+ "version": "0.0.134",
5
5
  "bin": {
6
6
  "akan": "cjs/index.js"
7
7
  },