Remove @sinclair/hammer dependency and task runner
- Remove @sinclair/hammer from devDependencies - Remove hammer.mjs entry point - Remove task/ directory (build scripts, benchmarks) - Add build.mjs: standalone build script replicating the CJS/ESM compilation, package.json generation, notice stripping, and ESM specifier rewrite logic - Update npm scripts to use build.mjs and direct tsc/mocha instead of hammer task commands
This commit is contained in:
20
package.json
20
package.json
@@ -16,23 +16,15 @@
|
||||
"url": "https://git.alk.dev/alkdev/typebox"
|
||||
},
|
||||
"scripts": {
|
||||
"test:typescript": "hammer task test_typescript",
|
||||
"test:static": "hammer task test_static",
|
||||
"test:runtime": "hammer task test_runtime",
|
||||
"install:local": "hammer task install_local",
|
||||
"benchmark": "hammer task benchmark",
|
||||
"build:to": "hammer task build_to",
|
||||
"build": "hammer task build",
|
||||
"test": "hammer task test",
|
||||
"clean": "hammer task clean",
|
||||
"format": "hammer task format",
|
||||
"start": "hammer task start",
|
||||
"publish": "hammer task publish",
|
||||
"publish:dev": "hammer task publish_dev"
|
||||
"test:static": "tsc -p test/static/tsconfig.json --noEmit --strict",
|
||||
"test:runtime": "tsc -p src/tsconfig.json --outDir target/test/runtime --target ES2020 --module Node16 --moduleResolution Node16 && mocha target/test/runtime/index.js",
|
||||
"build": "node build.mjs build",
|
||||
"clean": "node build.mjs clean",
|
||||
"test": "npm run test:static && npm run test:runtime",
|
||||
"format": "prettier --no-semi --single-quote --print-width 240 --trailing-comma all --write src test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@arethetypeswrong/cli": "^0.13.2",
|
||||
"@sinclair/hammer": "^0.18.0",
|
||||
"@types/mocha": "^9.1.1",
|
||||
"@types/node": "^22.13.5",
|
||||
"ajv": "^8.12.0",
|
||||
|
||||
Reference in New Issue
Block a user