@tinacms/cli 1.12.5 → 2.0.0
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.
- package/bin/tinacms +12 -6
- package/dist/index.js +874 -826
- package/package.json +8 -8
package/bin/tinacms
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const version = process.version.slice(1)
|
|
4
|
-
const [major, minor] = version.split('.')
|
|
3
|
+
const version = process.version.slice(1);
|
|
4
|
+
const [major, minor] = version.split('.');
|
|
5
5
|
if (major < 14 || (major == 14 && minor < 18)) {
|
|
6
6
|
console.error(
|
|
7
7
|
'ERROR: Node.js version lower than 14.18 is not supported in tinacms, please update to the latest LTS version. See https://nodejs.org/en/download/ for more details'
|
|
8
|
-
)
|
|
8
|
+
);
|
|
9
9
|
} else {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const [node, app, ...args] = process.argv;
|
|
11
|
+
import('../dist/index.js')
|
|
12
|
+
.then((cli) => {
|
|
13
|
+
cli.default.runExit(args);
|
|
14
|
+
})
|
|
15
|
+
.catch((err) => {
|
|
16
|
+
console.error('Failed to load CLI:', err);
|
|
17
|
+
process.exit(1);
|
|
18
|
+
});
|
|
13
19
|
}
|