Skip to content

Commit

Permalink
Change script name of check and format
Browse files Browse the repository at this point in the history
Provide a more concise script name to avoid conflicts like in `svelte-todo`
  • Loading branch information
aishenreemo committed Aug 6, 2023
1 parent 8e3ff72 commit 1abeb04
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/format_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
version: 8

- name: Format check on react-todo
run: cd packages/react-todo && pnpm install && pnpm run check
run: cd packages/react-todo && pnpm install && pnpm run prettier:check

- name: Format check on svelte-todo
run: cd packages/svelte-todo && pnpm install && pnpm run check
run: cd packages/svelte-todo && pnpm install && pnpm run prettier:check

- name: Format check on vanilla-todo
run: cd packages/vanilla-todo && pnpm install && pnpm run check
run: cd packages/vanilla-todo && pnpm install && pnpm run prettier:check

- name: Format check on vue-todo
run: cd packages/vue-todo && pnpm install && pnpm run check
run: cd packages/vue-todo && pnpm install && pnpm run prettier:check
6 changes: 3 additions & 3 deletions packages/react-todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"format": "pnpm exec -- npx prettier --write .",
"check": "pnpm exec -- npx prettier --check ."
"prettier:format": "pnpm exec -- npx prettier --write .",
"prettier:check": "pnpm exec -- npx prettier --check ."
},
"dependencies": {
"react": "^18.2.0",
Expand All @@ -26,4 +26,4 @@
"prettier": "^3.0.1",
"vite": "^4.4.5"
}
}
}
2 changes: 1 addition & 1 deletion packages/svelte-todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",
"prettier:format": "prettier --plugin-search-dir . --write .",
"prettier:check": "pnpm exec -- npx prettier --plugin-search-dir . --check .",
"test:integration": "playwright test",
"test:unit": "vitest"
Expand Down
6 changes: 3 additions & 3 deletions packages/vanilla-todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"format": "pnpm exec -- npx prettier --write .",
"check": "pnpm exec -- npx prettier --check ."
"prettier:format": "pnpm exec -- npx prettier --write .",
"prettier:check": "pnpm exec -- npx prettier --check ."
},
"devDependencies": {
"vite": "^4.4.5"
}
}
}
6 changes: 3 additions & 3 deletions packages/vue-todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview",
"format": "pnpm exec -- npx prettier --write .",
"check": "pnpm exec -- npx prettier --check ."
"prettier:format": "pnpm exec -- npx prettier --write .",
"prettier:check": "pnpm exec -- npx prettier --check ."
},
"dependencies": {
"vue": "^3.3.4"
Expand All @@ -19,4 +19,4 @@
"vite": "^4.4.5",
"vue-tsc": "^1.8.5"
}
}
}

0 comments on commit 1abeb04

Please sign in to comment.