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

Version Path
govuk_publishing_components-45.9.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-45.8.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-45.7.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-45.6.1 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-45.6.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-45.5.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-45.4.1 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-45.4.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-45.3.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-45.2.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-45.1.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-45.0.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-44.11.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-44.10.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-44.9.1 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-44.9.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-44.8.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-44.7.1 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-44.7.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs
govuk_publishing_components-44.6.0 node_modules/accessible-autocomplete/scripts/check-staged.mjs