We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a285c4d commit b329b5bCopy full SHA for b329b5b
packages/core/src/node/io.js
@@ -2,6 +2,7 @@ import fs from 'node:fs';
2
import path from 'node:path';
3
import { handleError } from '../utils/log.js';
4
import { parseProtoFiles } from '../core.js';
5
+import { defaultFilename } from '../constant.js';
6
7
const { mkdirSync, readdirSync, writeFileSync } = fs;
8
@@ -28,6 +29,10 @@ export function transformProtoFiles(options) {
28
29
if (!res) return;
30
31
mkdirSync(outputDir, { recursive: true });
32
+
33
+ if(res.has(defaultFilename)) {
34
+ res.delete(defaultFilename);
35
+ }
36
37
res.forEach((value, key) => {
38
const outputFile = path.join(outputDir, key);
0 commit comments