@esmx/core 3.0.0-rc.36 → 3.0.0-rc.37

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/dist/cli/cli.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import module from "node:module";
2
2
  import path from "node:path";
3
- import { fileURLToPath } from "node:url";
4
3
  import { styleText } from "node:util";
5
4
  import pkg from "../../package.json" with { type: "json" };
6
5
  import { COMMAND, Esmx } from "../core.mjs";
@@ -66,7 +65,7 @@ function exit(ok) {
66
65
  process.exit(17);
67
66
  }
68
67
  }
69
- module.register(fileURLToPath(import.meta.url), {
68
+ module.register(import.meta.url, {
70
69
  parentURL: import.meta.url
71
70
  });
72
71
  export function resolve(specifier, context, nextResolve) {
package/package.json CHANGED
@@ -59,7 +59,7 @@
59
59
  "build": "unbuild"
60
60
  },
61
61
  "dependencies": {
62
- "@esmx/import": "3.0.0-rc.36",
62
+ "@esmx/import": "3.0.0-rc.37",
63
63
  "@types/serialize-javascript": "^5.0.4",
64
64
  "es-module-lexer": "^1.7.0",
65
65
  "find": "^0.3.0",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@biomejs/biome": "1.9.4",
71
- "@esmx/lint": "3.0.0-rc.36",
71
+ "@esmx/lint": "3.0.0-rc.37",
72
72
  "@types/find": "^0.2.4",
73
73
  "@types/node": "^24.0.0",
74
74
  "@types/send": "^0.17.4",
@@ -79,7 +79,7 @@
79
79
  "unbuild": "3.5.0",
80
80
  "vitest": "3.2.4"
81
81
  },
82
- "version": "3.0.0-rc.36",
82
+ "version": "3.0.0-rc.37",
83
83
  "type": "module",
84
84
  "private": false,
85
85
  "exports": {
@@ -102,5 +102,5 @@
102
102
  "template",
103
103
  "public"
104
104
  ],
105
- "gitHead": "4e0010994789c318527fd6652b4f9aaa0131db75"
105
+ "gitHead": "ca2747fe29a9a48b942dfd9bf5a99742211afd3f"
106
106
  }
package/src/cli/cli.ts CHANGED
@@ -83,8 +83,8 @@ function exit(ok: boolean) {
83
83
  }
84
84
  }
85
85
 
86
- // 支持 TS 文件不需要编写 .ts 后缀。
87
- module.register(fileURLToPath(import.meta.url), {
86
+ // Support TS files without .ts suffix.
87
+ module.register(import.meta.url, {
88
88
  parentURL: import.meta.url
89
89
  });
90
90