UNPKG

jmd-scripts

Version:

CLI for common scripts for my projects

15 lines (11 loc) 434 B
#!/usr/bin/env node "use strict"; let shouldThrow; try { shouldThrow = require(`${process.cwd()}/package.json`).name === 'jmd-scripts' && Number(process.version.slice(1).split('.')[0]) < 8; } catch (error) {// ignore } if (shouldThrow) { throw new Error('You must use Node version 8 or greater to run the scripts within jmd-scripts ' + 'because we dogfood the untranspiled version of the scripts.'); } require('./run-script');