Skip to content

Commit a10418e

Browse files
authored
Bump Prettier to 1.10.1 (#3699)
* Bump Prettier to 1.10.1 * Fix relative paths
1 parent 408f3d3 commit a10418e

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
* Fixed an issue where the CLI fails to resolve a file.
66

7-
87
# 1.10.0
98

109
[link](https://github.com/prettier/prettier/compare/1.9.2...1.10.0)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"eslint-plugin-react": "7.1.0",
7272
"jest": "21.1.0",
7373
"mkdirp": "0.5.1",
74-
"prettier": "1.9.2",
74+
"prettier": "1.10.1",
7575
"prettylint": "1.0.0",
7676
"rimraf": "2.6.2",
7777
"rollup": "0.47.6",

scripts/build/build.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ shell.rm("-Rf", "dist/");
2626
shell.exec("rollup -c scripts/build/rollup.index.config.js");
2727

2828
shell.exec("rollup -c scripts/build/rollup.bin.config.js");
29-
shell.chmod("+x", "./dist/bin/prettier.js");
29+
shell.chmod("+x", "./dist/bin-prettier.js");
3030

3131
shell.exec("rollup -c scripts/build/rollup.third-party.config.js");
3232

@@ -63,7 +63,7 @@ shell.sed(
6363
/eval\("require"\)/,
6464
"require",
6565
"dist/index.js",
66-
"dist/bin/prettier.js"
66+
"dist/bin-prettier.js"
6767
);
6868

6969
shell.echo("Update ISSUE_TEMPLATE.md");
@@ -86,6 +86,7 @@ pipe(newIssueTemplate).to(".github/ISSUE_TEMPLATE.md");
8686

8787
shell.echo("Copy package.json");
8888
const pkgWithoutDependencies = Object.assign({}, pkg);
89+
pkgWithoutDependencies.bin = "./bin-prettier.js";
8990
delete pkgWithoutDependencies.dependencies;
9091
pkgWithoutDependencies.scripts = {
9192
prepublishOnly:

scripts/build/rollup.bin.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as path from "path";
77

88
export default Object.assign(baseConfig, {
99
entry: "bin/prettier.js",
10-
dest: "dist/bin/prettier.js",
10+
dest: "dist/bin-prettier.js",
1111
format: "cjs",
1212
banner: "#!/usr/bin/env node",
1313
plugins: [
@@ -34,6 +34,6 @@ export default Object.assign(baseConfig, {
3434
path.resolve("src/common/third-party.js")
3535
],
3636
paths: {
37-
[path.resolve("src/common/third-party.js")]: "../third-party"
37+
[path.resolve("src/common/third-party.js")]: "./third-party"
3838
}
3939
});

tests_integration/runPrettier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const stripAnsi = require("strip-ansi");
66
const ENV_LOG_LEVEL = require("../src/cli/logger").ENV_LOG_LEVEL;
77

88
const isProduction = process.env.NODE_ENV === "production";
9-
const prettierCli = isProduction ? "../dist/bin/prettier" : "../bin/prettier";
9+
const prettierCli = isProduction ? "../dist/bin-prettier" : "../bin/prettier";
1010
const thirdParty = isProduction
1111
? "../dist/third-party"
1212
: "../src/common/third-party";

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3579,9 +3579,9 @@ preserve@^0.2.0:
35793579
version "0.2.0"
35803580
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
35813581

3582-
prettier@1.9.2:
3583-
version "1.9.2"
3584-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.9.2.tgz#96bc2132f7a32338e6078aeb29727178c6335827"
3582+
prettier@1.10.1:
3583+
version "1.10.1"
3584+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.10.1.tgz#01423fea6957ea23618d37d339ef0e7f7c967fc6"
35853585

35863586
35873587
version "21.3.0-beta.15"

0 commit comments

Comments
 (0)