Skip to content

Commit

Permalink
feat: add clean-pkg-json (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Oct 20, 2022
1 parent ae9c7f7 commit c5cf6da
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -24,7 +24,10 @@ jobs:
version: 7
run_install: true

- name: Test (pretest produces build)
- name: Build
run: pnpm build

- name: Test
run: pnpm test

- name: Release
Expand Down
6 changes: 4 additions & 2 deletions package.json
Expand Up @@ -43,10 +43,11 @@
"type-check": "tsc --noEmit",
"test": "tsx tests",
"test:dts": "tsd -f tests/cleye.test-d.ts",
"dev": "tsx watch --conditions=development tests"
"dev": "tsx watch --conditions=development tests",
"prepack": "pnpm build && clean-pkg-json"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged && pnpm test"
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*.ts": "pnpm lint"
Expand All @@ -58,6 +59,7 @@
"devDependencies": {
"@pvtnbr/eslint-config": "^0.30.2",
"@types/node": "^18.11.0",
"clean-pkg-json": "^1.2.0",
"eslint": "^8.25.0",
"kolorist": "^1.6.0",
"lint-staged": "^13.0.3",
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit c5cf6da

Please sign in to comment.