Skip to content

Commit 4a97aaa

Browse files
committed
refactor: Simplify file matching
1 parent cfbe1ab commit 4a97aaa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"fix": "npm run fix:format && npm run fix:lint",
5656
"fix:format": "npm run check:format -- --write",
5757
"fix:lint": "npm run check:lint -- --fix --quiet",
58-
"postversion": "git push origin && git push origin --tags && npm publish --access public && git reset --hard",
58+
"postversion": "git push origin && git push origin --tags && npm publish --access public && git restore .",
5959
"preversion": "git checkout main && git pull && npm install && npm run test && npm run dist",
6060
"release:major": "generate-changelog -M -x \"chore,test\" && npm run docs && npm run commit && npm version major",
6161
"release:minor": "generate-changelog -m -x \"chore,test\" && npm run docs && npm run commit && npm version minor",

vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export default defineConfig({
99
test: {
1010
bail: 1,
1111
coverage: {
12-
include: ['**/*.{ts,tsx}', '!**/*.d.ts', '!**/cli.ts', '!**/index.ts', '!**/start*.ts'],
12+
exclude: ['**/cli.ts', '**/index.ts', '**/start.ts'],
13+
include: ['src/**'],
1314
provider: 'v8',
1415
reporter: ['html', 'lcov', 'text'],
1516
thresholds: {

0 commit comments

Comments
 (0)