@blitzjs/cli
Advanced tools
Comparing version 0.44.4 to 0.45.0-canary.0
@@ -119,2 +119,3 @@ "use strict"; | ||
run() { | ||
var _a; | ||
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
@@ -129,2 +130,4 @@ const { args, argv, flags } = this.parse(Generate); | ||
this.validateModelName(singularRootContext); | ||
const { loadConfigProduction } = yield Promise.resolve().then(() => (0, tslib_1.__importStar)(require("next/dist/server/config-shared"))); | ||
const blitzConfig = loadConfigProduction(process.cwd()); | ||
const generators = generatorMap[args.type]; | ||
@@ -134,2 +137,3 @@ for (const GeneratorClass of generators) { | ||
destinationRoot: require("path").resolve(), | ||
templateDir: (_a = blitzConfig.codegen) === null || _a === void 0 ? void 0 : _a.templateDir, | ||
extraArgs: argv.slice(2).filter((arg) => !arg.startsWith("-")), | ||
@@ -136,0 +140,0 @@ modelName: singularRootContext, |
{ | ||
"name": "@blitzjs/cli", | ||
"description": "Blitz.js CLI", | ||
"version": "0.44.4", | ||
"version": "0.45.0-canary.0", | ||
"license": "MIT", | ||
@@ -25,5 +25,5 @@ "scripts": { | ||
"dependencies": { | ||
"@blitzjs/generator": "0.44.4", | ||
"@blitzjs/installer": "0.44.4", | ||
"@blitzjs/server": "0.44.4", | ||
"@blitzjs/generator": "0.45.0-canary.0", | ||
"@blitzjs/installer": "0.45.0-canary.0", | ||
"@blitzjs/server": "0.45.0-canary.0", | ||
"@oclif/command": "1.8.0", | ||
@@ -92,3 +92,3 @@ "@oclif/config": "1.17.0", | ||
}, | ||
"gitHead": "e3472171a59d285ae84f2149f96cbb71834eaeb7" | ||
"gitHead": "91172b82d9b3d2a81c52e8ba2f4c7ed851efa90c" | ||
} |
72944
1663
+ Added@blitzjs/installer@0.45.0-canary.0(transitive)
+ Added@blitzjs/server@0.45.0-canary.0(transitive)
- Removed@blitzjs/installer@0.44.4(transitive)
- Removed@blitzjs/server@0.44.4(transitive)