@thegetty/quire-cli 0.20.0 → 0.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +20 -0
  2. package/package.json +1 -1
package/index.js ADDED
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const currentNodeVersion = process.versions.node
5
+ const minimumNodeVersion = 14
6
+ const semver = {};
7
+ [semver.major, semver.minor, semver.patch ] = currentNodeVersion.split('.')
8
+
9
+ if (semver.major < minimumNodeVersion) {
10
+ console.error(`
11
+ You are running Node ${currentNodeVersion}
12
+ Quire CLI requires Node ${minimumNodeVersion} or higher.
13
+ Please update your version of Node.
14
+ `)
15
+ process.exit(1)
16
+ }
17
+
18
+ const { init } = require('./quire')
19
+
20
+ init()
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@thegetty/quire-cli",
3
3
  "description": "Quire command-line interface",
4
- "version": "0.20.0",
4
+ "version": "0.20.3",
5
5
  "author": "Getty Digital",
6
6
  "license": "J Paul Getty Trust",
7
7
  "bugs": {