Skip to content

Commit

Permalink
Refactor error, panic (#12)
Browse files Browse the repository at this point in the history
* Add ignored scripts to gitignore

* Update name type

* Update expect, unwrap

* Update panic stack

* Update result error

* Update default node version

* Update tsconfig

* Remove tsup

* Fix build config
  • Loading branch information
bkiac authored Nov 10, 2023
1 parent 0c96b87 commit 80ec5f9
Show file tree
Hide file tree
Showing 29 changed files with 298 additions and 768 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run format:check
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
lib
*.ignore.ts
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,18 @@
"result-type"
],
"scripts": {
"build": "tsup",
"build": "rm -rf lib && tsc --p tsconfig.build.json && prettier --write ./lib --ignore-path ''",
"format": "prettier --write .",
"format:check": "prettier --check .",
"prepublishOnly": "pnpm run build",
"test": "vitest",
"types": "tsc --noEmit"
"types": "tsc"
},
"devDependencies": {
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"prettier": "^3.0.2",
"prettier-plugin-pkg": "^0.18.0",
"tsup": "^7.2.0",
"tsx": "^3.14.0",
"typescript": "^5.0.4",
"vitest": "^0.34.6"
Expand Down
Loading

0 comments on commit 80ec5f9

Please sign in to comment.