Skip to content

Commit

Permalink
chore: fix lint issue and update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 1, 2023
1 parent 464b65e commit e162ab8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"changelogen": "jiti ./src/cli.ts",
"dev": "vitest dev",
"lint": "eslint --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
"lint:fix": "eslint --fix --ext .ts,.js,.mjs,.cjs . && prettier -w src test",
"prepack": "unbuild",
"release": "pnpm test && pnpm changelogen --release && git push --follow-tags && pnpm publish",
"test": "pnpm lint && vitest run --coverage"
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ async function main() {
// Commit and tag changes for release mode
if (args.release) {
if (args.commit !== false) {
const filesToAdd = [config.output, "package.json"].filter(f => f && typeof f === 'string') as string[]
const filesToAdd = [config.output, "package.json"].filter(
(f) => f && typeof f === "string"
) as string[];
await execa("git", ["add", ...filesToAdd], { cwd });
await execa(
"git",
Expand Down
2 changes: 1 addition & 1 deletion test/git.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ describe("git", () => {
### ❤️ Contributors
- Pooya Parsa <pooya@pi0.io>"
- Pooya Parsa ([@pi0](http://github.com/pi0))"
`);
});
});

0 comments on commit e162ab8

Please sign in to comment.