Skip to content

Commit 61b2956

Browse files
committed
fix: create missing dir
1 parent 0ed826a commit 61b2956

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,9 @@ try {
140140

141141
outputDirs.forEach(_outputDir => {
142142
const _outFile = path.resolve(_outputDir, `${federationConfig.name}.d.ts`);
143-
console.log('writing typing file:', _outFile);
144143

144+
console.log('writing typing file:', _outFile);
145+
fs.mkdirSync(path.dirname(_outFile), { recursive: true });
145146
fs.writeFileSync(_outFile, typing);
146147

147148
console.debug(`using output dir: ${_outputDir}`);

0 commit comments

Comments
 (0)