Skip to content

Commit db71aaf

Browse files
committed
Refactor, the class stuff was horrible
1 parent 7f01d31 commit db71aaf

4 files changed

Lines changed: 229 additions & 135 deletions

File tree

package-lock.json

Lines changed: 62 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,17 @@
5757
"#package.json": "./package.json"
5858
},
5959
"scripts": {
60-
"clean": "node -e \"require('node:fs').rmSync('./dist', { recursive: true, force: true, maxRetries: process.platform === 'win32' ? 10 : 0 })\"",
60+
"clean": "rimraf dist",
6161
"prebuild": "npm run clean",
62-
"build": "npm run build:js && npm run build:dts",
62+
"build": "npm run buildOnly",
63+
"buildOnly": "npm run build:js && npm run build:dts",
6364
"build:js": "tsc -p tsconfig.build.json --removeComments",
6465
"build:dts": "tsc -p tsconfig.build.json --declaration --emitDeclarationOnly",
65-
"pretest": "npm run build",
66+
"pretest": "npm run buildOnly",
6667
"test": "npm run testOnly",
6768
"testOnly": "ava",
6869
"lint": "eslint source/index.ts",
69-
"prepublishOnly": "npm run lint && npm run build"
70+
"prepublishOnly": "npm run lint && npm run buildOnly"
7071
},
7172
"devDependencies": {
7273
"@eslint/js": "^10.0.1",
@@ -77,8 +78,10 @@
7778
"eslint": "^10.1.0",
7879
"fast-check": "^4.2.0",
7980
"globals": "^17.4.0",
81+
"rimraf": "^6.1.3",
8082
"rollup": "^4.28.1",
8183
"tslib": "^2.8.1",
84+
"type-fest": "^5.5.0",
8285
"typescript": "^6.0.0",
8386
"typescript-eslint": "^8.57.1"
8487
},

0 commit comments

Comments
 (0)