mbler 0.2.8-rc.3 → 0.2.8-rc.4

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.
@@ -8,11 +8,11 @@ import * as readline from "readline";
8
8
  import * as fs$2 from "node:fs";
9
9
  import fs$1 from "node:fs";
10
10
  import os, { homedir, tmpdir } from "node:os";
11
- import { pathToFileURL } from "node:url";
12
11
  import { styleText } from "node:util";
13
12
  import { createMCXLanguagePlugin } from "@mbler/mcx-server";
14
13
  import { runTsc } from "@volar/typescript/lib/quickstart/runTsc.js";
15
14
  import { env } from "node:process";
15
+ import { pathToFileURL } from "node:url";
16
16
  import crypto from "node:crypto";
17
17
  //#region \0rolldown/runtime.js
18
18
  var __defProp = Object.defineProperty;
@@ -97,19 +97,13 @@ var init_types = __esmMin((() => {
97
97
  var version_default;
98
98
  var init_version = __esmMin((() => {
99
99
  version_default = {
100
- commit: `commit 1baf9507d75a8356a2e032f3556dd630645f0c00
100
+ commit: `commit 16d7601ca78c6e6179b16bb2ee694ae0f51bf038
101
101
  Author: ruanhor <3915264929@qq.com>
102
- Date: Sat Jun 27 23:38:10 2026 +0800
102
+ Date: Sun Jun 28 00:17:14 2026 +0800
103
103
 
104
- fix: cross-platform compatibility improvements
105
-
106
- - Use pathToFileURL for dynamic import() to support Windows paths
107
- - Enable shell mode in spawn() on Windows for .cmd/.bat resolution
108
- - Fix BUILD_MODULE env var syntax in example with cross-env
109
- - Bump version: 0.2.8-rc.2 -> 0.2.8-rc.3
110
- - Update @mbler/mcx-server dependency to 0.1.1-rc.5
104
+ fix: use forward slash normalization instead of pathToFileURL for Windows dynamic import compat; add version.d.ts to eslint allowDefaultProject
111
105
  `,
112
- version: "0.2.8-rc.3"
106
+ version: "0.2.8-rc.4"
113
107
  };
114
108
  }));
115
109
  //#endregion
@@ -660,7 +654,7 @@ function join(baseDir, inputPath) {
660
654
  return path$1.isAbsolute(inputPath) ? inputPath : path$1.join(baseDir, inputPath);
661
655
  }
662
656
  async function ReadProjectMblerConfig(project) {
663
- const file = (await import(pathToFileURL(path$1.join(project, BuildConfig.ConfigFile)).href)).default || {};
657
+ const file = (await import(path$1.join(project, BuildConfig.ConfigFile).replace(/\\/g, "/"))).default || {};
664
658
  for (const key in file) if (!(key in templateMblerConfig)) throw new Error(`[read config]: read config from '${project}' error: Unexpected '${key}'`);
665
659
  const config = {
666
660
  ...templateMblerConfig,