Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit 844a9e0

Browse files
committed
chore: formatting
1 parent 95716c7 commit 844a9e0

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

index.js

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,30 @@ const options = require('minimist')(process.argv.slice(2))
88
const path = require('path')
99

1010
// don't normalize package.json
11-
readPkgUp({normalize:false})
12-
.then(result => {
13-
let {pkg} = result
14-
const pkgPath = result.path
15-
const gitPath = path.dirname(pkgPath)
11+
readPkgUp({normalize: false}).then(result => {
12+
let {pkg} = result
13+
const pkgPath = result.path
14+
const gitPath = path.dirname(pkgPath)
1615

17-
const gitInfo = {
18-
short: git.short(gitPath),
19-
long: git.long(gitPath),
20-
branch: git.branch(gitPath)
21-
}
16+
const gitInfo = {
17+
short: git.short(gitPath),
18+
long: git.long(gitPath),
19+
branch: git.branch(gitPath)
20+
}
2221

23-
const updatedPkg = Object.assign({}, pkg, {
24-
git: gitInfo
25-
})
22+
const updatedPkg = Object.assign({}, pkg, {
23+
git: gitInfo
24+
})
2625

27-
writePkg(pkgPath, updatedPkg).then(() => {
28-
if (options.verbose || options.v) {
29-
const logMsg = `
30-
Git path: ${gitPath}
26+
writePkg(pkgPath, updatedPkg).then(() => {
27+
if (options.verbose || options.v) {
28+
const logMsg = `
29+
Git path: ${gitPath}
3130
Git info in ${pkgPath} was updated:
3231
Short: ${chalk.green(gitInfo.short)}
3332
Long: ${chalk.yellow(gitInfo.long)}
3433
Branch: ${chalk.red(gitInfo.branch)}`
35-
console.log(logMsg)
36-
}
37-
})
38-
});
34+
console.log(logMsg)
35+
}
36+
})
37+
})

0 commit comments

Comments
 (0)