Skip to content

Commit 0e015cd

Browse files
committed
Fix build-examples.mjs
1 parent 754ea6f commit 0e015cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build-examples.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const examples = readdirSync('examples')
1515
async function buildExamples () {
1616
await execa('yarn', [], { stdio: 'inherit' })
1717
await execa('yarn', ['build'], { stdio: 'inherit' })
18-
mkdirSync(path.resolve('temp'))
18+
const tempPath = path.resolve('temp')
19+
if (!existsSync(tempPath))
20+
mkdirSync(tempPath)
1921
await execa('yarn', ['pack', '-f', `../../temp/fluent-vue-${id}.tgz`], {
2022
stdio: 'inherit',
2123
cwd: 'packages/fluent-vue'

0 commit comments

Comments
 (0)