Skip to content

Commit d41dab8

Browse files
committed
chore: upgrade depenendecies
1 parent c657356 commit d41dab8

File tree

10 files changed

+820
-463
lines changed

10 files changed

+820
-463
lines changed

.release-it.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,58 +28,75 @@
2828
"release": "release-it"
2929
},
3030
"dependencies": {
31-
"@babel/core": "^7.8.4",
31+
"@babel/core": "^7.9.6",
3232
"@babel/plugin-proposal-class-properties": "^7.8.3",
33-
"@babel/preset-env": "^7.8.4",
34-
"@babel/preset-flow": "^7.8.3",
35-
"@babel/preset-react": "^7.8.3",
36-
"@babel/preset-typescript": "^7.8.3",
37-
"chalk": "^3.0.0",
33+
"@babel/preset-env": "^7.9.6",
34+
"@babel/preset-flow": "^7.9.0",
35+
"@babel/preset-react": "^7.9.4",
36+
"@babel/preset-typescript": "^7.9.0",
37+
"chalk": "^4.0.0",
3838
"cosmiconfig": "^6.0.0",
39-
"cross-spawn": "^7.0.1",
39+
"cross-spawn": "^7.0.2",
4040
"dedent": "^0.7.0",
4141
"del": "^5.1.0",
42-
"ejs": "^3.0.1",
43-
"fs-extra": "^8.1.0",
42+
"ejs": "^3.1.2",
43+
"fs-extra": "^9.0.0",
4444
"github-username": "^5.0.1",
4545
"glob": "^7.1.6",
4646
"inquirer": "^7.0.4",
4747
"is-git-dirty": "^1.0.0",
48-
"json5": "^2.1.1",
48+
"json5": "^2.1.3",
4949
"validate-npm-package-name": "^3.0.0",
50-
"yargs": "^15.1.0"
50+
"yargs": "^15.3.1"
5151
},
5252
"optionalDependencies": {
5353
"jetifier": "^1.6.5"
5454
},
5555
"devDependencies": {
5656
"@babel/cli": "^7.8.4",
5757
"@commitlint/config-conventional": "^8.3.4",
58-
"@release-it/conventional-changelog": "^1.1.0",
59-
"@types/babel__core": "^7.1.3",
58+
"@release-it/conventional-changelog": "^1.1.4",
59+
"@types/babel__core": "^7.1.7",
6060
"@types/chalk": "^2.2.0",
6161
"@types/cross-spawn": "^6.0.1",
6262
"@types/dedent": "^0.7.0",
6363
"@types/del": "^4.0.0",
64-
"@types/ejs": "^3.0.0",
65-
"@types/fs-extra": "^8.0.1",
64+
"@types/ejs": "^3.0.3",
65+
"@types/fs-extra": "^8.1.0",
6666
"@types/glob": "^7.1.1",
6767
"@types/inquirer": "^6.5.0",
6868
"@types/json5": "^0.0.30",
6969
"@types/validate-npm-package-name": "^3.0.0",
70-
"@types/yargs": "^15.0.3",
70+
"@types/yargs": "^15.0.4",
7171
"commitlint": "^8.3.5",
7272
"eslint": "^6.8.0",
7373
"eslint-config-satya164": "^3.1.6",
74-
"husky": "^4.2.1",
75-
"prettier": "^1.19.1",
76-
"release-it": "^12.4.3",
77-
"typescript": "^3.7.5"
74+
"husky": "^4.2.5",
75+
"prettier": "^2.0.5",
76+
"release-it": "^13.5.8",
77+
"typescript": "^3.8.3"
7878
},
7979
"husky": {
8080
"hooks": {
8181
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
8282
"pre-commit": "yarn lint && yarn typescript"
8383
}
84+
},
85+
"release-it": {
86+
"git": {
87+
"commitMessage": "chore: release ${version}",
88+
"tagName": "v${version}"
89+
},
90+
"npm": {
91+
"publish": true
92+
},
93+
"github": {
94+
"release": true
95+
},
96+
"plugins": {
97+
"@release-it/conventional-changelog": {
98+
"preset": "angular"
99+
}
100+
}
84101
}
85102
}

src/cli.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ yargs
5353
name: 'source',
5454
message: 'Where are your source files?',
5555
default: 'src',
56-
validate: input => Boolean(input),
56+
validate: (input) => Boolean(input),
5757
});
5858

5959
let entryFile;
@@ -80,15 +80,15 @@ yargs
8080
name: 'output',
8181
message: 'Where do you want to generate the output files?',
8282
default: 'lib',
83-
validate: input => Boolean(input),
83+
validate: (input) => Boolean(input),
8484
},
8585
{
8686
type: 'checkbox',
8787
name: 'targets',
8888
message: 'Which targets do you want to build?',
8989
// @ts-ignore
9090
choices: ['aar', 'commonjs', 'module', 'typescript'],
91-
validate: input => Boolean(input.length),
91+
validate: (input) => Boolean(input.length),
9292
},
9393
];
9494

@@ -280,7 +280,7 @@ yargs
280280

281281
logger.success('Your project is configured!');
282282
})
283-
.command('build', 'build files for publishing', {}, async argv => {
283+
.command('build', 'build files for publishing', {}, async (argv) => {
284284
const result = explorer.search();
285285

286286
if (!result?.config) {

src/create.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,29 +67,29 @@ export default async function create(argv: yargs.Arguments<any>) {
6767
? basename
6868
: `react-native-${basename}`
6969
: undefined,
70-
validate: input =>
70+
validate: (input) =>
7171
validateNpmPackage(input).validForNewPackages ||
7272
'Must be a valid npm package name',
7373
},
7474
{
7575
type: 'input',
7676
name: 'description',
7777
message: 'What is the description for the package?',
78-
validate: input => Boolean(input),
78+
validate: (input) => Boolean(input),
7979
},
8080
{
8181
type: 'input',
8282
name: 'authorName',
8383
message: 'What is the name of package author?',
8484
default: name,
85-
validate: input => Boolean(input),
85+
validate: (input) => Boolean(input),
8686
},
8787
{
8888
type: 'input',
8989
name: 'authorEmail',
9090
message: 'What is the email address for the package author?',
9191
default: email,
92-
validate: input =>
92+
validate: (input) =>
9393
/^\S+@\S+$/.test(input) || 'Must be a valid email address',
9494
},
9595
{
@@ -107,7 +107,7 @@ export default async function create(argv: yargs.Arguments<any>) {
107107

108108
return undefined;
109109
},
110-
validate: input => /^https?:\/\//.test(input) || 'Must be a valid URL',
110+
validate: (input) => /^https?:\/\//.test(input) || 'Must be a valid URL',
111111
},
112112
{
113113
type: 'input',
@@ -122,7 +122,7 @@ export default async function create(argv: yargs.Arguments<any>) {
122122

123123
return undefined;
124124
},
125-
validate: input => /^https?:\/\//.test(input) || 'Must be a valid URL',
125+
validate: (input) => /^https?:\/\//.test(input) || 'Must be a valid URL',
126126
},
127127
{
128128
type: 'confirm',
@@ -135,7 +135,7 @@ export default async function create(argv: yargs.Arguments<any>) {
135135
name: 'useCpp',
136136
message: 'Do you want to use C++ code?',
137137
default: false,
138-
when: response => response.useNative,
138+
when: (response) => response.useNative,
139139
},
140140
])) as {
141141
slug: string;

src/targets/typescript.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ export default async function build({
8383
(platform() === 'win32' ? '.cmd' : '');
8484

8585
if (!(await fs.pathExists(tsc))) {
86-
tsc = spawn
87-
.sync('which', ['tsc'])
88-
.stdout.toString()
89-
.trim();
86+
tsc = spawn.sync('which', ['tsc']).stdout.toString().trim();
9087

9188
report.warn(
9289
`Using a global version of ${chalk.blue(

src/utils/compile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default async function compile({
3636
);
3737

3838
await Promise.all(
39-
files.map(async filepath => {
39+
files.map(async (filepath) => {
4040
const outputFilename = path
4141
.join(output, path.relative(source, filepath))
4242
.replace(/\.(js|tsx?)$/, '.js');

templates/expo-library/example/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = function(api) {
1+
module.exports = function (api) {
22
api.cache(true);
33
return {
44
presets: ['babel-preset-expo'],

templates/expo-library/example/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const createExpoWebpackConfigAsync = require('@expo/webpack-config');
44
const root = path.resolve(__dirname, '..');
55
const node_modules = path.resolve(__dirname, 'node_modules');
66

7-
module.exports = async function(env, argv) {
7+
module.exports = async function (env, argv) {
88
const config = await createExpoWebpackConfigAsync(env, argv);
99

1010
config.module.rules.push({

types/is-git-dirty.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
declare module 'is-git-dirty' {
2-
export default function(): boolean | null;
2+
export default function (): boolean | null;
33
}

0 commit comments

Comments
 (0)