Skip to content

Commit bfa6cfe

Browse files
authored
chore(deps): update dependency prettier to v3 (#119)
2 parents 2c9a7a6 + ce10bb1 commit bfa6cfe

File tree

4 files changed

+65
-21
lines changed

4 files changed

+65
-21
lines changed

package-lock.json

Lines changed: 58 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"build:types": "tsc -p tsconfig.build.json",
4141
"check:types": "tsc -p tsconfig.json",
4242
"format:check": "prettier --check \"{**/*,*}.{js,ts}\"",
43-
"format:write": "npm run format:check -- --write",
43+
"format": "npm run format:check -- --write",
4444
"lint": "eslint --ext \".js,.ts\" .",
4545
"release": "release-it",
4646
"test": "vitest",
@@ -63,8 +63,8 @@
6363
"eslint-config-airbnb-typescript": "^17.1.0",
6464
"eslint-config-prettier": "^9.0.0",
6565
"eslint-plugin-import": "^2.28.1",
66-
"eslint-plugin-prettier": "^4.2.1",
67-
"prettier": "^2.8.8",
66+
"eslint-plugin-prettier": "^5.0.0",
67+
"prettier": "^3.0.3",
6868
"release-it": "^16.1.5",
6969
"typescript": "^5.2.2",
7070
"vitest": "^0.34.3"

src/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe("rollup-plugin-conditional-exec", () => {
7373
});
7474

7575
await expect(bundlePromise).rejects.toThrow(
76-
"rollup-plugin-conditional-exec requires a command to be used, received: empty string"
76+
"rollup-plugin-conditional-exec requires a command to be used, received: empty string",
7777
);
7878
});
7979
});
@@ -303,7 +303,7 @@ describe("rollup-plugin-conditional-exec", () => {
303303

304304
// await bundle.write({ dir: outputDir, format: "cjs" })
305305
await expect(
306-
bundle.write({ dir: outputDir, format: "cjs" })
306+
bundle.write({ dir: outputDir, format: "cjs" }),
307307
).rejects.toThrow("Test Error");
308308
expect(consoleErrorSpy).toHaveBeenCalled();
309309
expect(consoleDebugSpy).toHaveBeenCalled();

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface RollupConditionalExecOptions {
3232
}
3333

3434
export default function conditionalExec(
35-
opts: RollupConditionalExecOptions
35+
opts: RollupConditionalExecOptions,
3636
): Plugin {
3737
const cmd: string = opts.command;
3838
const options: CommonExecOptions = opts.options || { stdio: "inherit" };
@@ -57,7 +57,7 @@ export default function conditionalExec(
5757
if (!cmd) {
5858
const errReason = cmd === "" ? "empty string" : "undefined or null";
5959
throw new Error(
60-
`rollup-plugin-conditional-exec requires a command to be used, received: ${errReason}`
60+
`rollup-plugin-conditional-exec requires a command to be used, received: ${errReason}`,
6161
);
6262
}
6363
},

0 commit comments

Comments
 (0)