Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement type safety #7

Merged
merged 12 commits into from
May 13, 2024
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
nodejs: [16]
nodejs: [18, 20]
os: [ubuntu-latest, macOS-latest]
fail-fast: false
steps:
Expand All @@ -53,4 +53,4 @@ jobs:
run: pnpm typecheck

- name: Test
run: pnpm test
run: pnpm test -- --coverage
128 changes: 0 additions & 128 deletions build.js

This file was deleted.

43 changes: 26 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,42 +24,51 @@
},
"license": "Apache-2.0",
"files": [
"dist",
"src/index.d.ts",
"src/debug.d.ts"
"dist"
],
"type": "module",
"sideEffects": false,
"engines": {
"node": ">= 12.17"
"node": ">= 18"
},
"exports": {
".": {
"types": "./src/index.d.ts",
"import": "./dist/index.js"
},
"./debug": {
"types": "./src/debug.d.ts",
"import": "./dist/debug.js"
"types": "./dist/index.d.ts",
"require": "./dist/index.min.cjs",
"import": "./dist/index.min.js"
},
"./package.json": "./package.json"
},
"module": "./dist/index.js",
"types": "./src/index.d.ts",
"types": "./dist/index.d.ts",
"main": "./dist/index.min.cjs",
"module": "./dist/index.min.js",
"scripts": {
"prepare": "tomer install",
"format": "tomer format",
"lint": "tomer lint",
"typecheck": "tomer typecheck",
"test": "tomer test",
"build": "node build.js",
"build": "tomer build",
"clean": "tomer clean dist",
"prepublishOnly": "npm run build"
"prepublishOnly": "tomer build"
},
"prettier": "tomer/prettier",
"terser": {
"mangle": {
"properties": {
"regex": "^_[^_]+"
}
}
},
"dependencies": {
"type-fest": "^4.18.2"
},
"devDependencies": {
"@types/jest": "^29.5.2",
"get-all-files": "^4.1.0",
"terser": "^5.18.2",
"tomer": "^2.0.7"
"eslint": "^8.57.0",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"tomer": "^3.2.1",
"typescript": "^5.4.5"
}
}
61 changes: 0 additions & 61 deletions packages/grfnviz/package.json

This file was deleted.

Loading
Loading