@gx-design-vue/create-gx-cli 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gx-design-vue/create-gx-cli",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "a cli to bootstrap gx project",
package/src/cli.js CHANGED
@@ -6,8 +6,7 @@ import prompts from 'prompts'
6
6
  import { blue, green, red, reset, yellow } from 'kolorist'
7
7
  import { createProject } from './main.js'
8
8
 
9
- const cwd = process.cwd()
10
- let packageJSON = fs.readFileSync(path.join(cwd, '../package.json'), 'utf-8')
9
+ let packageJSON = fs.readFileSync(path.join('../package.json'), 'utf-8')
11
10
  packageJSON = JSON.parse(packageJSON)
12
11
  const { version } = packageJSON
13
12