Skip to content

Commit 43cc6c2

Browse files
committed
chore: upgrade depenendecies
1 parent 6f9703c commit 43cc6c2

File tree

4 files changed

+1984
-1201
lines changed

4 files changed

+1984
-1201
lines changed

.release-it.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
2-
"increment": "conventional:angular",
3-
"scripts": {
4-
"changelog": "conventional-changelog -p angular | tail -n +3"
5-
},
62
"git": {
73
"commitMessage": "chore: release %s",
84
"tagName": "v%s"
@@ -12,5 +8,10 @@
128
},
139
"github": {
1410
"release": true
11+
},
12+
"plugins": {
13+
"@release-it/conventional-changelog": {
14+
"preset": "angular"
15+
}
1516
}
1617
}

package.json

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,39 +25,38 @@
2525
"release": "release-it"
2626
},
2727
"dependencies": {
28-
"@babel/core": "^7.4.0",
29-
"chalk": "^2.4.2",
30-
"cosmiconfig": "^5.2.0",
31-
"del": "^4.1.0",
32-
"fs-extra": "^7.0.1",
33-
"glob": "^7.1.3",
34-
"inquirer": "^6.2.2",
28+
"@babel/core": "^7.7.7",
29+
"chalk": "^3.0.0",
30+
"cosmiconfig": "^6.0.0",
31+
"del": "^5.1.0",
32+
"fs-extra": "^8.1.0",
33+
"glob": "^7.1.6",
34+
"inquirer": "^7.0.1",
3535
"is-git-dirty": "^1.0.0",
36-
"metro-react-native-babel-preset": "^0.53.1",
37-
"yargs": "^13.2.2"
36+
"metro-react-native-babel-preset": "^0.57.0",
37+
"yargs": "^15.0.2"
3838
},
3939
"optionalDependencies": {
40-
"jetifier": "^1.0.0-beta04.2"
40+
"jetifier": "^1.6.5"
4141
},
4242
"devDependencies": {
43-
"@babel/cli": "^7.2.3",
44-
"@babel/preset-env": "^7.4.2",
45-
"@babel/preset-typescript": "^7.3.3",
46-
"@commitlint/config-conventional": "^7.5.0",
47-
"@types/babel__core": "^7.1.0",
43+
"@babel/cli": "^7.7.7",
44+
"@babel/preset-env": "^7.7.7",
45+
"@babel/preset-typescript": "^7.7.7",
46+
"@commitlint/config-conventional": "^8.2.0",
47+
"@release-it/conventional-changelog": "^1.1.0",
48+
"@types/babel__core": "^7.1.3",
4849
"@types/chalk": "^2.2.0",
49-
"@types/cosmiconfig": "^5.0.3",
5050
"@types/del": "^4.0.0",
51-
"@types/fs-extra": "^5.0.5",
51+
"@types/fs-extra": "^8.0.1",
5252
"@types/glob": "^7.1.1",
53-
"@types/inquirer": "^6.0.0",
54-
"@types/yargs": "^12.0.11",
55-
"commitlint": "^7.5.2",
56-
"conventional-changelog-cli": "^2.0.12",
57-
"husky": "^1.3.1",
58-
"prettier": "^1.17.0",
59-
"release-it": "^10.4.0",
60-
"typescript": "^3.4.1"
53+
"@types/inquirer": "^6.5.0",
54+
"@types/yargs": "^13.0.3",
55+
"commitlint": "^8.2.0",
56+
"husky": "^3.1.0",
57+
"prettier": "^1.19.1",
58+
"release-it": "^12.4.3",
59+
"typescript": "^3.7.3"
6160
},
6261
"husky": {
6362
"hooks": {

src/cli.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from 'fs-extra';
33
import chalk from 'chalk';
44
import yargs from 'yargs';
55
import inquirer from 'inquirer';
6-
import cosmiconfig from 'cosmiconfig';
6+
import { cosmiconfigSync } from 'cosmiconfig';
77
import isGitDirty from 'is-git-dirty';
88
import * as logger from './utils/logger';
99
import buildAAR from './targets/aar';
@@ -14,7 +14,7 @@ import { Options } from './types';
1414

1515
const { name } = require('../package.json');
1616
const root = process.cwd();
17-
const explorer = cosmiconfig(name);
17+
const explorer = cosmiconfigSync(name);
1818

1919
const FLOW_PRGAMA_REGEX = /\*?\s*@(flow)\b/m;
2020

@@ -79,6 +79,7 @@ yargs
7979
type: 'checkbox',
8080
name: 'targets',
8181
message: 'Which targets do you want to build?',
82+
// @ts-ignore
8283
choices: ['aar', 'commonjs', 'module', 'typescript'],
8384
validate: input => Boolean(input.length),
8485
},
@@ -230,7 +231,7 @@ yargs
230231
logger.success('Your project is configured!');
231232
})
232233
.command('build', 'build files for publishing', {}, async argv => {
233-
const result = explorer.searchSync();
234+
const result = explorer.search();
234235

235236
if (!(result && result.config)) {
236237
logger.exit(

0 commit comments

Comments
 (0)