CLI: Restrict node.js environment

This commit is contained in:
SonMooSans
2023-11-02 16:01:43 +08:00
parent 58f5d0dce5
commit 0686061eb6
3 changed files with 9 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'create-next-docs-app': patch
---
Restrict node.js environment
+3
View File
@@ -38,5 +38,8 @@
"@types/cross-spawn": "^6.0.4",
"@types/node": "18.17.5",
"fast-glob": "^3.3.1"
},
"engines": {
"node": ">=18.17.0"
}
}
+1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env node
import { existsSync } from 'fs'
import fs from 'fs/promises'
import path from 'path'