UNPKG

434 BJavaScriptView Raw
1#!/usr/bin/env node
2"use strict";
3
4let shouldThrow;
5
6try {
7 shouldThrow = require(`${process.cwd()}/package.json`).name === 'kcd-scripts' && Number(process.version.slice(1).split('.')[0]) < 8;
8} catch (error) {// ignore
9}
10
11if (shouldThrow) {
12 throw new Error('You must use Node version 8 or greater to run the scripts within kcd-scripts ' + 'because we dogfood the untranspiled version of the scripts.');
13}
14
15require('./run-script');
\No newline at end of file