Skip to content

Commit

Permalink
🐛 fix: Fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jan 7, 2025
1 parent 92f7a9d commit eb310d1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: CI
run: bun run ci

- name: Test
run: bun run test

- name: Build
run: bun run build

Expand Down
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env sh

npm run type-check
npm run lint:circular
npx --no-install lint-staged
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
"prettier": "prettier -c --write \"**/**\"",
"release": "semantic-release",
"setup": "dumi setup",
"test": "vitest --passWithNoTests",
"test:coverage": "vitest run --coverage --passWithNoTests",
"test:update": "vitest -u",
"type-check": "tsc --noEmit"
},
"lint-staged": {
Expand Down Expand Up @@ -108,6 +111,7 @@
"eslint": "^8.57.1",
"father": "^4.5.1",
"husky": "^9.1.7",
"jsdom": "^25.0.1",
"lint-staged": "^15.3.0",
"prettier": "^3.4.2",
"remark": "^14.0.3",
Expand Down
Empty file added tests/.gitkeep
Empty file.
12 changes: 1 addition & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,5 @@
}
},
"exclude": ["./react.d.ts", "./server.d.ts"],
"include": [
"src",
"docs",
"tests",
"api",
".dumirc.ts",
".fatherrc.ts",
"**/*.ts",
"**/*.d.ts",
"**/*.tsx"
]
"include": ["src", "docs", "tests", ".dumirc.ts", ".fatherrc.ts"]
}
14 changes: 14 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineConfig } from 'vitest/config';

import { name } from './package.json';

export default defineConfig({
test: {
alias: {
'@': './src',
[name]: './src',
},
environment: 'jsdom',
globals: true,
},
});

0 comments on commit eb310d1

Please sign in to comment.