Skip to content

Commit 6aa2964

Browse files
committed
update
1 parent 1e8c682 commit 6aa2964

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/cli/src/actions/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function getPluginProvider(plugin: Plugin) {
117117
}
118118

119119
function getPluginOptions(plugin: Plugin): Record<string, unknown> {
120-
const result: any = {};
120+
const result: Record<string, unknown> = {};
121121
for (const field of plugin.fields) {
122122
if (field.name === 'provider') {
123123
continue; // skip provider

packages/cli/src/plugins/typescript.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ const plugin: CliPlugin = {
77
name: 'TypeScript Schema Generator',
88
statusText: 'Generating TypeScript schema',
99
async generate({ model, defaultOutputPath, pluginOptions }) {
10-
let ourDir = defaultOutputPath;
10+
let outDir = defaultOutputPath;
1111
if (typeof pluginOptions['output'] === 'string') {
12-
ourDir = path.resolve(defaultOutputPath, pluginOptions['output']);
13-
if (!fs.existsSync(ourDir)) {
14-
fs.mkdirSync(ourDir, { recursive: true });
12+
outDir = path.resolve(defaultOutputPath, pluginOptions['output']);
13+
if (!fs.existsSync(outDir)) {
14+
fs.mkdirSync(outDir, { recursive: true });
1515
}
1616
}
17-
await new TsSchemaGenerator().generate(model, ourDir);
17+
await new TsSchemaGenerator().generate(model, outDir);
1818
},
1919
};
2020

0 commit comments

Comments
 (0)