@john-cli/init 1.0.19 → 1.0.22

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/index.js +1 -1
  2. package/package.json +6 -5
package/lib/index.js CHANGED
@@ -5,7 +5,7 @@ const inquirer = require('inquirer')
5
5
  const path = require('path')
6
6
  const fse = require('fs-extra')
7
7
  const semver = require('semver')
8
- import { homedir as userHome } from 'os';
8
+ const userHome = require('userhome')
9
9
 
10
10
  const ejs = require('ejs')
11
11
  const Command = require('@john-cli/command')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@john-cli/init",
3
- "version": "1.0.19",
3
+ "version": "1.0.22",
4
4
  "description": "john-cli init",
5
5
  "author": "tanhongjian <350089447@qq.com>",
6
6
  "homepage": "",
@@ -24,8 +24,8 @@
24
24
  "test": "echo \"Error: run tests from root\" && exit 1"
25
25
  },
26
26
  "dependencies": {
27
- "@john-cli/command": "file:../../mocels/command",
28
- "@john-cli/log": "file:../../log/log",
27
+ "@john-cli/command": "^1.0.7",
28
+ "@john-cli/log": "^1.0.7",
29
29
  "@john-cli/package": "^1.0.19",
30
30
  "@john-cli/request": "^1.0.7",
31
31
  "@john-cli/utils": "^1.0.7",
@@ -34,7 +34,8 @@
34
34
  "glob": "^8.0.3",
35
35
  "inquirer": "^8.0.0",
36
36
  "kebab-case": "^1.0.1",
37
- "semver": "^7.3.7"
37
+ "semver": "^7.3.7",
38
+ "userhome": "^1.0.0"
38
39
  },
39
- "gitHead": "491a13b58fada3ed6f41aab3045dfdaf3dd7f433"
40
+ "gitHead": "e92e49cc89ef283936c095250bdd134fd42008ce"
40
41
  }