ms-vite-plugin 0.4.5 → 0.5.1

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.
Files changed (2) hide show
  1. package/dist/build.js +5 -0
  2. package/package.json +1 -1
package/dist/build.js CHANGED
@@ -204,6 +204,11 @@ const buildAll = async (isDev = true, workspacePath) => {
204
204
  const r = (0, child_process_1.spawnSync)(py.path, ["-m", "compileall", "scripts"], {
205
205
  encoding: "utf8",
206
206
  cwd: outPath,
207
+ env: {
208
+ ...process.env,
209
+ PYTHONIOENCODING: "utf-8",
210
+ PYTHONUTF8: "1",
211
+ },
207
212
  });
208
213
  if (r.status === 0) {
209
214
  console.log("✅ 成功编译所有 Python 文件");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "0.4.5",
3
+ "version": "0.5.1",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {