Major version update. Major bugfixes. Security vulnerabilites fixed
This commit is contained in:
Vendored
+3
-3
@@ -1,5 +1,4 @@
|
||||
import { Command } from "commander";
|
||||
import init from "../functions/init";
|
||||
import dbSchemaToTypeDef from "../lib/sqlite/schema-to-typedef";
|
||||
import path from "path";
|
||||
import grabDirNames from "../data/grab-dir-names";
|
||||
@@ -10,7 +9,8 @@ export default function () {
|
||||
.description("Build DB From Schema")
|
||||
.action(async (opts) => {
|
||||
console.log(`Creating Type Definition From DB Schema ...`);
|
||||
const { config, dbSchema } = await init();
|
||||
const config = global.CONFIG;
|
||||
const dbSchema = global.DB_SCHEMA;
|
||||
const { ROOT_DIR } = grabDirNames();
|
||||
const finaldbSchema = appendDefaultFieldsToDbSchema({ dbSchema });
|
||||
if (config.typedef_file_path) {
|
||||
@@ -22,7 +22,7 @@ export default function () {
|
||||
});
|
||||
}
|
||||
else {
|
||||
console.error(``);
|
||||
console.error(`\`typedef_file_path\` is required in your config`);
|
||||
process.exit(1);
|
||||
}
|
||||
console.log(`${chalk.bold(chalk.green(`Typedef gen success!`))}`);
|
||||
|
||||
Reference in New Issue
Block a user