Skip to content

Commit

Permalink
remove mutation from precommit to prevent unstaged file commits
Browse files Browse the repository at this point in the history
Signed-off-by: david <[email protected]>
  • Loading branch information
daywiss committed Aug 2, 2024
1 parent a471bea commit c0ed739
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pnpm turbo run fix build test
pnpm turbo run check test
2 changes: 1 addition & 1 deletion apps/node/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function run() {
assert(APP, 'Specify the application to start with "APP=appname pnpm start"');
switch (APP) {
case "template":
void await Template.Main(process.env);
void (await Template.Main(process.env));
return "Example template app running";
default:
throw new Error(`Unable to start, unknown app: ${APP}`);
Expand Down
4 changes: 2 additions & 2 deletions packages/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"main": "index.js",
"scripts": {
"build": "tsc -b",
"build:check": "tsc -b --noEmit",
"build:check": "tsc --noEmit",
"watch": "tsc -b --watch",
"fix": "pnpm format && pnpm lint",
"format": "prettier --write src",
"format:check": "prettier src --check",
"lint": "eslint --fix",
"lint:check": "eslint",
"check": "pnpm format:check && pnpm lint:check && build:check",
"check": "pnpm format:check && pnpm lint:check && pnpm build:check",
"test": "jest",
"test:watch": "jest --watch"
},
Expand Down

0 comments on commit c0ed739

Please sign in to comment.