Skip to content

Commit

Permalink
Temporarily force GOV.UK Frontend pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Oct 24, 2023
1 parent ae1af80 commit 2905408
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bin/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,23 @@ const packageJsonFormat = { encoding: 'utf8', spaces: 2 }

async function npmInstall (cwd, dependencies) {
dependencies.push('--save-exact')

// Temporarily force GOV.UK Frontend pre-release
const dependenciesMapped = dependencies
.map((dependency) => dependency === 'govuk-frontend'
? '[email protected]'
: dependency)

return spawn(
'npm', [
'install',
...dependencies
...dependenciesMapped
], {
cwd,
stderr: 'inherit'
})
.catch(e => {
console.error('Failed to install dependencies: ', dependencies.join(', '))
console.error('Failed to install dependencies: ', dependenciesMapped.join(', '))
console.error(e)
process.exit(0)
})
Expand Down

0 comments on commit 2905408

Please sign in to comment.