Skip to content

Commit 49009bc

Browse files
committed
throw error if .bin/tailwind doesn't exist
1 parent 55c8a08 commit 49009bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

generator/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function generateConfig(option) {
3737
}
3838
const { spawnSync } = require('child_process');
3939
const tailwind = path.resolve('./node_modules/.bin/tailwind');
40+
if (!fs.existsSync(tailwind)) throw new Error(`${tailwind} not found`);
4041
spawnSync(tailwind, args, { shell: process.platform === 'win32' });
4142
}
4243

0 commit comments

Comments
 (0)