@biuxiu/codegen 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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";
@@ -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.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "代码生成工具",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -28,9 +28,11 @@
28
28
  "tsx": "^4.15.1",
29
29
  "typescript": "^5.4.5"
30
30
  },
31
+ "peerDependencies": {
32
+ "better-sqlite3": "^11.1.2"
33
+ },
31
34
  "dependencies": {
32
35
  "@biuxiu/template": "^1.5.2",
33
- "better-sqlite3": "^11.1.2",
34
36
  "prettier": "^3.3.2",
35
37
  "ts-morph": "^22.0.0"
36
38
  }