Skip to content

Commit

Permalink
chore: display version on bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 3, 2022
1 parent 8ddf57e commit 56b5742
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/buildFixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ async function run () {
await fs.remove(join(path, 'dist'))
}
console.log(c.yellow(c.inverse(c.bold('\n Vite '))), name, '\n')
execSync('npx vite --version', { cwd: path, stdio: 'inherit' })
execSync('npx vite build', { cwd: path, stdio: 'inherit' })
console.log(c.red(c.inverse(c.bold('\n Rollup '))), name, '\n')
execSync('npx rollup --version', { cwd: path, stdio: 'inherit' })
execSync('npx rollup -c', { cwd: path, stdio: 'inherit' })
console.log(c.blue(c.inverse(c.bold('\n Webpack '))), name, '\n')
execSync('npx webpack --version', { cwd: path, stdio: 'inherit' })
execSync('npx webpack', { cwd: path, stdio: 'inherit' })
console.log(c.yellow(c.inverse(c.bold('\n Esbuild '))), name, '\n')
execSync('npx esbuild --version', { cwd: path, stdio: 'inherit' })
execSync('node esbuild.config.js', { cwd: path, stdio: 'inherit' })
}
}
Expand Down

0 comments on commit 56b5742

Please sign in to comment.