Skip to content

Commit

Permalink
store schema-generated typings into .d.ts files rather .ts to prevent…
Browse files Browse the repository at this point in the history
… duplication in final npm package
  • Loading branch information
jacoscaz committed May 20, 2024
1 parent 93ce97c commit b727c66
Show file tree
Hide file tree
Showing 185 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json2types.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const output_dir_abspath = resolve(process.cwd(), output_dir_path);

const output_file_data = await compile(input_schema, {});

const output_file_abspath = join(output_dir_abspath, `${schema_name}.ts`);
const output_file_abspath = join(output_dir_abspath, `${schema_name}.d.ts`);

await writeFile(output_file_abspath, output_file_data, 'utf8');

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b727c66

Please sign in to comment.