Skip to content

Commit ce10bb1

Browse files
committed
chore(format): run format
1 parent e6c8500 commit ce10bb1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
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",

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)