@biuxiu/codegen 0.2.14 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/compile.js +2 -2
  2. package/package.json +1 -1
package/dist/compile.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { resolve } from "path";
2
- import { platform } from "os";
2
+ import { arch, platform } from "os";
3
3
  import { spawn } from "child_process";
4
4
  const getPathName = () => {
5
5
  switch (platform()) {
6
6
  case "win32":
7
- return "win/luac.exe";
7
+ return arch() === "x64" ? "win/luac.exe" : "win/luac_32.exe";
8
8
  case "linux":
9
9
  return "linux/luac";
10
10
  case "darwin":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biuxiu/codegen",
3
- "version": "0.2.14",
3
+ "version": "0.3.0",
4
4
  "description": "代码生成工具",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {