Sha256: a1b64da0b404448b7930168c24d07fe97ee9be6183edd94bcb5b4e3205463760
Contents?: true
Size: 425 Bytes
Versions: 30
Compression:
Stored size: 425 Bytes
Contents
import { exec } from 'node:child_process' import chalk from 'chalk' exec('git diff --name-only dist/', (err, stdout) => { if (err) { console.log(chalk.red('ERROR:'), err) return process.exit(1) } if (stdout.toString().length) { console.log(chalk.red('ERROR:'), 'There are unstaged changes in `dist/` after running `npm run build`. Please commit them.') return process.exit(1) } process.exit() })
Version data entries
30 entries across 30 versions & 1 rubygems