Skip to content

Commit a21dfcd

Browse files
committed
Ensure CJS output folders
1 parent 5a0e70a commit a21dfcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/toolkit/scripts/build.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ async function bundle(options: BuildOptions & EntryPointOptions) {
148148
const outputFolder = path.join(...folderSegments)
149149
const outputFilename = `${prefix}.${name}.js`
150150

151-
fs.mkdirs(outputFolder)
151+
await fs.ensureDir(outputFolder)
152+
152153
const outputFilePath = path.join(outputFolder, outputFilename)
153154

154155
if (format === 'cjs') {

0 commit comments

Comments
 (0)