@akanjs/cli 2.3.10-rc.1 → 2.3.10

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.
@@ -10272,7 +10272,6 @@ import path24 from "path";
10272
10272
  // pkgs/@akanjs/devkit/frontendBuild/pagesEntrySourceGenerator.ts
10273
10273
  import fs3 from "fs";
10274
10274
  import path23 from "path";
10275
- import { pathToFileURL } from "url";
10276
10275
  import ts8 from "typescript";
10277
10276
 
10278
10277
  class PagesEntrySourceGenerator {
@@ -10285,7 +10284,7 @@ class PagesEntrySourceGenerator {
10285
10284
  }
10286
10285
  generate() {
10287
10286
  const lines = this.#pageEntries.map(({ key, moduleAbsPath }) => {
10288
- const specifier = pathToFileURL(path23.resolve(moduleAbsPath)).href;
10287
+ const specifier = PagesEntrySourceGenerator.#toImportSpecifier(moduleAbsPath);
10289
10288
  return ` ${JSON.stringify(key)}: () => import(${JSON.stringify(specifier)}),`;
10290
10289
  });
10291
10290
  return `export const pages = {
@@ -10299,7 +10298,7 @@ ${lines.join(`
10299
10298
  }
10300
10299
  generateStatic() {
10301
10300
  const imports = this.#pageEntries.map(({ moduleAbsPath }, index) => {
10302
- const specifier = pathToFileURL(path23.resolve(moduleAbsPath)).href;
10301
+ const specifier = PagesEntrySourceGenerator.#toImportSpecifier(moduleAbsPath);
10303
10302
  return `import * as page${index} from ${JSON.stringify(specifier)};`;
10304
10303
  });
10305
10304
  const entries = this.#pageEntries.map(({ key, moduleAbsPath }, index) => {
@@ -10314,6 +10313,9 @@ ${entries.join(`
10314
10313
  };
10315
10314
  `;
10316
10315
  }
10316
+ static #toImportSpecifier(moduleAbsPath) {
10317
+ return path23.resolve(moduleAbsPath).split(path23.sep).join("/");
10318
+ }
10317
10319
  static #hasAsyncDefaultExport(moduleAbsPath) {
10318
10320
  try {
10319
10321
  const source2 = fs3.readFileSync(path23.resolve(moduleAbsPath), "utf8");
package/index.js CHANGED
@@ -10270,7 +10270,6 @@ import path24 from "path";
10270
10270
  // pkgs/@akanjs/devkit/frontendBuild/pagesEntrySourceGenerator.ts
10271
10271
  import fs3 from "fs";
10272
10272
  import path23 from "path";
10273
- import { pathToFileURL } from "url";
10274
10273
  import ts8 from "typescript";
10275
10274
 
10276
10275
  class PagesEntrySourceGenerator {
@@ -10283,7 +10282,7 @@ class PagesEntrySourceGenerator {
10283
10282
  }
10284
10283
  generate() {
10285
10284
  const lines = this.#pageEntries.map(({ key, moduleAbsPath }) => {
10286
- const specifier = pathToFileURL(path23.resolve(moduleAbsPath)).href;
10285
+ const specifier = PagesEntrySourceGenerator.#toImportSpecifier(moduleAbsPath);
10287
10286
  return ` ${JSON.stringify(key)}: () => import(${JSON.stringify(specifier)}),`;
10288
10287
  });
10289
10288
  return `export const pages = {
@@ -10297,7 +10296,7 @@ ${lines.join(`
10297
10296
  }
10298
10297
  generateStatic() {
10299
10298
  const imports = this.#pageEntries.map(({ moduleAbsPath }, index) => {
10300
- const specifier = pathToFileURL(path23.resolve(moduleAbsPath)).href;
10299
+ const specifier = PagesEntrySourceGenerator.#toImportSpecifier(moduleAbsPath);
10301
10300
  return `import * as page${index} from ${JSON.stringify(specifier)};`;
10302
10301
  });
10303
10302
  const entries = this.#pageEntries.map(({ key, moduleAbsPath }, index) => {
@@ -10312,6 +10311,9 @@ ${entries.join(`
10312
10311
  };
10313
10312
  `;
10314
10313
  }
10314
+ static #toImportSpecifier(moduleAbsPath) {
10315
+ return path23.resolve(moduleAbsPath).split(path23.sep).join("/");
10316
+ }
10315
10317
  static #hasAsyncDefaultExport(moduleAbsPath) {
10316
10318
  try {
10317
10319
  const source2 = fs3.readFileSync(path23.resolve(moduleAbsPath), "utf8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "2.3.10-rc.1",
3
+ "version": "2.3.10",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -34,7 +34,7 @@
34
34
  "@langchain/openai": "^1.4.6",
35
35
  "@tailwindcss/node": "^4.3.0",
36
36
  "@trapezedev/project": "^7.1.4",
37
- "akanjs": "2.3.10-rc.1",
37
+ "akanjs": "2.3.10",
38
38
  "chalk": "^5.6.2",
39
39
  "commander": "^14.0.3",
40
40
  "daisyui": "5.5.23",