@akanjs/cli 0.9.17 → 0.9.19

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
@@ -811,6 +811,7 @@ RUN mkdir -p /workspace
811
811
  WORKDIR /workspace
812
812
  COPY ./package.json ./package.json
813
813
  RUN npx pnpm i --prod
814
+ ${postRunScripts.join("\n")}
814
815
  COPY . .
815
816
  ENV PORT=8080
816
817
  ENV NODE_OPTIONS=--max_old_space_size=8192
@@ -819,7 +820,6 @@ ENV NEXT_PUBLIC_SERVE_DOMAIN=${serveDomain}
819
820
  ENV NEXT_PUBLIC_APP_NAME=${name}
820
821
  ENV NEXT_PUBLIC_ENV=${env}
821
822
  ENV NEXT_PUBLIC_OPERATION_MODE=cloud
822
- ${postRunScripts.join("\n")}
823
823
  CMD [${command.map((c) => `"${c}"`).join(",")}]`;
824
824
  return {
825
825
  content,
@@ -2632,7 +2632,7 @@ var extractDependencies = (filepaths, pacakgeJson, defaultDependencies = []) =>
2632
2632
  ...pacakgeJson.devDependencies ?? {}
2633
2633
  };
2634
2634
  const requireRegex = /(?:require\s*\(|import\s*(?:[\w\s{},*]*\s+from\s*)?|import\s*\()\s*['"`]([^'"`]+)['"`]/g;
2635
- for (const { text } of filepaths.filter(({ path: path9 }) => path9.endsWith(".js"))) {
2635
+ for (const { text } of filepaths.filter(({ path: path9 }) => path9.endsWith(".js") || path9.endsWith(".ts"))) {
2636
2636
  let requireMatch;
2637
2637
  while ((requireMatch = requireRegex.exec(text)) !== null) {
2638
2638
  const moduleName = requireMatch[1];
@@ -4051,7 +4051,7 @@ var ApplicationRunner = class {
4051
4051
  await app.spawn("npx", ["next", "build", "--no-lint"], { env, ...spawnOptions });
4052
4052
  const buildResult = await esbuild2.build({
4053
4053
  entryPoints: [`${app.cwdPath}/next.config.ts`],
4054
- outdir: `${app.dist.cwdPath}/frontend`,
4054
+ outfile: `${app.dist.cwdPath}/frontend/next.config.ts`,
4055
4055
  bundle: true,
4056
4056
  packages: "external",
4057
4057
  platform: "node",
package/esm/index.js CHANGED
@@ -791,6 +791,7 @@ RUN mkdir -p /workspace
791
791
  WORKDIR /workspace
792
792
  COPY ./package.json ./package.json
793
793
  RUN npx pnpm i --prod
794
+ ${postRunScripts.join("\n")}
794
795
  COPY . .
795
796
  ENV PORT=8080
796
797
  ENV NODE_OPTIONS=--max_old_space_size=8192
@@ -799,7 +800,6 @@ ENV NEXT_PUBLIC_SERVE_DOMAIN=${serveDomain}
799
800
  ENV NEXT_PUBLIC_APP_NAME=${name}
800
801
  ENV NEXT_PUBLIC_ENV=${env}
801
802
  ENV NEXT_PUBLIC_OPERATION_MODE=cloud
802
- ${postRunScripts.join("\n")}
803
803
  CMD [${command.map((c) => `"${c}"`).join(",")}]`;
804
804
  return {
805
805
  content,
@@ -2611,7 +2611,7 @@ var extractDependencies = (filepaths, pacakgeJson, defaultDependencies = []) =>
2611
2611
  ...pacakgeJson.devDependencies ?? {}
2612
2612
  };
2613
2613
  const requireRegex = /(?:require\s*\(|import\s*(?:[\w\s{},*]*\s+from\s*)?|import\s*\()\s*['"`]([^'"`]+)['"`]/g;
2614
- for (const { text } of filepaths.filter(({ path: path9 }) => path9.endsWith(".js"))) {
2614
+ for (const { text } of filepaths.filter(({ path: path9 }) => path9.endsWith(".js") || path9.endsWith(".ts"))) {
2615
2615
  let requireMatch;
2616
2616
  while ((requireMatch = requireRegex.exec(text)) !== null) {
2617
2617
  const moduleName = requireMatch[1];
@@ -4033,7 +4033,7 @@ var ApplicationRunner = class {
4033
4033
  await app.spawn("npx", ["next", "build", "--no-lint"], { env, ...spawnOptions });
4034
4034
  const buildResult = await esbuild2.build({
4035
4035
  entryPoints: [`${app.cwdPath}/next.config.ts`],
4036
- outdir: `${app.dist.cwdPath}/frontend`,
4036
+ outfile: `${app.dist.cwdPath}/frontend/next.config.ts`,
4037
4037
  bundle: true,
4038
4038
  packages: "external",
4039
4039
  platform: "node",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "sourceType": "module",
4
4
  "name": "@akanjs/cli",
5
- "version": "0.9.17",
5
+ "version": "0.9.19",
6
6
  "bin": {
7
7
  "akan": "esm/index.js"
8
8
  },