main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
401 bytes
|
Line | |
---|
1 | let { execSync } = require('child_process')
|
---|
2 | let pico = require('picocolors')
|
---|
3 |
|
---|
4 | try {
|
---|
5 | let version = parseInt(execSync('npm -v'))
|
---|
6 | if (version <= 6) {
|
---|
7 | process.stderr.write(
|
---|
8 | pico.red(
|
---|
9 | 'Update npm or call ' +
|
---|
10 | pico.yellow('npx browserslist@latest --update-db') +
|
---|
11 | '\n'
|
---|
12 | )
|
---|
13 | )
|
---|
14 | process.exit(1)
|
---|
15 | }
|
---|
16 | // eslint-disable-next-line no-unused-vars
|
---|
17 | } catch (e) {}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.