create-codeforge-app 1.0.3 → 1.0.4

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/lib/detect.js +1 -1
  2. package/package.json +1 -1
package/lib/detect.js CHANGED
@@ -6,7 +6,7 @@ function commandExists(cmd) {
6
6
  }
7
7
 
8
8
  function pgReady() {
9
- try { const r = execSync('pg_isready 2>&1', { encoding: 'utf8' }); return r.includes('accepting') } catch { return false }
9
+ try { execSync('pg_isready', { stdio: 'ignore' }); return true } catch { return false }
10
10
  }
11
11
 
12
12
  function dockerRunning() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-codeforge-app",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "一行命令创建全栈项目(NestJS + Vue3 + PostgreSQL)",
5
5
  "bin": {
6
6
  "create-codeforge-app": "./index.js"