automate-release 2.0.28 → 2.0.29
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/install.js +1 -2
- package/package.json +2 -3
package/bin/install.js
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
const { white, red, gray } = require('picocolors')
|
|
6
6
|
const { get, forEach, set } = require('lodash')
|
|
7
|
-
const existsFile = require('exists-file')
|
|
8
7
|
const jsonFuture = require('json-future')
|
|
9
8
|
const link = require('terminal-link')
|
|
10
9
|
const fs = require('fs-extra')
|
|
@@ -20,7 +19,7 @@ const processError = error =>
|
|
|
20
19
|
module.exports = async ({ cwd } = {}) => {
|
|
21
20
|
const pkgPath = path.join(cwd, 'package.json')
|
|
22
21
|
|
|
23
|
-
if (!(await
|
|
22
|
+
if (!(await fs.existsSync(pkgPath))) {
|
|
24
23
|
return processError({
|
|
25
24
|
message: 'First, you need to initialize `package.json`.'
|
|
26
25
|
})
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "automate-release",
|
|
3
3
|
"description": "No more manual work in your software releases.",
|
|
4
4
|
"homepage": "https://nicedoc.io/kikobeats/automate-release",
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.29",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"automate-release": "bin/index.js"
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"standard-version"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"exists-file": "~3.0.2",
|
|
42
41
|
"fs-extra": "~11.1.0",
|
|
43
42
|
"json-future": "~2.2.4",
|
|
44
43
|
"lodash": "~4.17.19",
|
|
@@ -88,7 +87,7 @@
|
|
|
88
87
|
]
|
|
89
88
|
},
|
|
90
89
|
"nano-staged": {
|
|
91
|
-
"*.js
|
|
90
|
+
"*.js": [
|
|
92
91
|
"prettier-standard",
|
|
93
92
|
"standard --fix"
|
|
94
93
|
],
|