Skip to content

Commit 7863e84

Browse files
committed
chore: format files with prettier
1 parent 88c879c commit 7863e84

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"commitlint": "^7.5.2",
5353
"conventional-changelog-cli": "^2.0.12",
5454
"husky": "^1.3.1",
55+
"prettier": "^1.17.0",
5556
"release-it": "^10.4.0",
5657
"typescript": "^3.4.1"
5758
},

src/targets/commonjs.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ export default async function build({
1313
source,
1414
output,
1515
options,
16-
report
16+
report,
1717
}: Options) {
18-
report.info(`Cleaning up previous build at ${chalk.blue(path.relative(root, output))}`);
18+
report.info(
19+
`Cleaning up previous build at ${chalk.blue(path.relative(root, output))}`
20+
);
1921

2022
await del([output]);
2123

@@ -27,6 +29,6 @@ export default async function build({
2729
presets: [[require.resolve('metro-react-native-babel-preset')]],
2830
},
2931
flow: options && options.flow ? true : false,
30-
report
32+
report,
3133
});
3234
}

src/targets/module.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ export default async function build({
1313
source,
1414
output,
1515
options,
16-
report
16+
report,
1717
}: Options) {
18-
report.info(`Cleaning up previous build at ${chalk.blue(path.relative(root, output))}`);
18+
report.info(
19+
`Cleaning up previous build at ${chalk.blue(path.relative(root, output))}`
20+
);
1921

2022
await del([output]);
2123

@@ -32,6 +34,6 @@ export default async function build({
3234
],
3335
},
3436
flow: options && options.flow ? true : false,
35-
report
37+
report,
3638
});
3739
}

src/targets/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default async function build({ root, output, report }: Input) {
1818
const tsc =
1919
path.join(root, 'node_modules', '.bin', 'tsc') +
2020
(platform() === 'win32' ? '.cmd' : '');
21-
21+
2222
const tsconfig = path.join(root, 'tsconfig.json');
2323

2424
try {

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4089,6 +4089,11 @@ prepend-http@^2.0.0:
40894089
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
40904090
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
40914091

4092+
prettier@^1.17.0:
4093+
version "1.17.0"
4094+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.17.0.tgz#53b303676eed22cc14a9f0cec09b477b3026c008"
4095+
integrity sha512-sXe5lSt2WQlCbydGETgfm1YBShgOX4HxQkFPvbxkcwgDvGDeqVau8h+12+lmSVlP3rHPz0oavfddSZg/q+Szjw==
4096+
40924097
private@^0.1.6:
40934098
version "0.1.8"
40944099
resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff"

0 commit comments

Comments
 (0)