@mintlify/cli 4.0.793 → 4.0.794
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/cli.js +10 -0
- package/bin/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/cli.tsx +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.794",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"vitest": "^2.0.4",
|
|
82
82
|
"vitest-mock-process": "^1.0.4"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "3650a55328ee02b922a10fa06f3e6dcfe7afb99a"
|
|
85
85
|
}
|
package/src/cli.tsx
CHANGED
|
@@ -72,6 +72,20 @@ export const cli = ({ packageName = 'mint' }: { packageName?: string }) => {
|
|
|
72
72
|
.example('mintlify dev', 'run with default settings (opens in browser)')
|
|
73
73
|
.example('mintlify dev --no-open', 'run without opening in browser'),
|
|
74
74
|
async (argv) => {
|
|
75
|
+
let nodeVersionString = process.version;
|
|
76
|
+
if (nodeVersionString.charAt(0) === 'v') {
|
|
77
|
+
nodeVersionString = nodeVersionString.slice(1);
|
|
78
|
+
}
|
|
79
|
+
const versionArr = nodeVersionString.split('.');
|
|
80
|
+
const majorVersion = parseInt(versionArr[0]!, 10);
|
|
81
|
+
|
|
82
|
+
if (majorVersion >= 25) {
|
|
83
|
+
addLog(
|
|
84
|
+
<ErrorLog message="mint dev is not supported on node versions 25+. Please downgrade to an LTS node version." />
|
|
85
|
+
);
|
|
86
|
+
await terminate(1);
|
|
87
|
+
}
|
|
88
|
+
|
|
75
89
|
const port = await checkPort(argv);
|
|
76
90
|
const { cli: cliVersion } = getVersions();
|
|
77
91
|
if (port != undefined) {
|