@biuxiu/codegen 0.2.14 → 0.3.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.
@@ -1,4 +1,4 @@
1
- import { ApiServiceField, FieldSchema, ModuleConfig, ModuleRoute } from '@/types';
1
+ import { ApiServiceField, FieldSchema, ModuleConfig, ModuleRoute } from '../types';
2
2
  export declare class RenderVue {
3
3
  #private;
4
4
  constructor(name: string, path?: string);
package/dist/code/vue.js CHANGED
@@ -1,6 +1,6 @@
1
- import { getSqliteFile, getWebDir } from "@/config";
2
- import xiu from "@/render";
3
- import { writeFormatFile } from "@/util";
1
+ import { getSqliteFile, getWebDir } from "../config";
2
+ import xiu from "../render";
3
+ import { writeFormatFile } from "../util";
4
4
  import { existsSync, mkdirSync, statSync } from "fs";
5
5
  import { readdir, rmdir, unlink } from "fs/promises";
6
6
  import { join } from "path";
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":
@@ -144,15 +144,15 @@ export function __wbindgen_object_drop_ref(arg0) {
144
144
  takeObject(arg0);
145
145
  };
146
146
 
147
- export function __wbg_renderNestCode_786f8dedd18b6a00(arg0, arg1, arg2, arg3) {
147
+ export function __wbg_renderNestCode_43d887970c976b50(arg0, arg1, arg2, arg3) {
148
148
  renderNestCode(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
149
149
  };
150
150
 
151
- export function __wbg_renderVueCode_cd8438a75c2a320e(arg0, arg1, arg2, arg3) {
151
+ export function __wbg_renderVueCode_e6cfd2b1578474e7(arg0, arg1, arg2, arg3) {
152
152
  renderVueCode(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
153
153
  };
154
154
 
155
- export function __wbg_printToNode_f8646f4da26c5023(arg0) {
155
+ export function __wbg_printToNode_0a71a7f2e717dc5a(arg0) {
156
156
  printToNode(getObject(arg0));
157
157
  };
158
158
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biuxiu/codegen",
3
- "version": "0.2.14",
3
+ "version": "0.3.1",
4
4
  "description": "代码生成工具",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {