utils: use split loader into @hydrooj/register

This commit is contained in:
undefined committed 2024-01-24 04:11:48 +08:00
1 parent 4f74c666f6
commit cffce0bd79
14 files changed
+141 -122

No files matched your search

+5 -5
View File
@@ -17,7 +17,7 @@
"build:ui:dev:https": "node packages/ui-default/build --gulp && node --trace-deprecation packages/ui-default/build --dev --https",
"build:ui:production": "cross-env NODE_OPTIONS=--max_old_space_size=8192 node packages/ui-default/build --gulp && node packages/ui-default/build --production",
"build:ui:production:webpack": "cross-env NODE_OPTIONS=--max_old_space_size=8192 node packages/ui-default/build --production",
"test": "node -r @hydrooj/utils/lib/register packages/utils/tests/subtask.spec.ts && node test/entry.js",
"test": "node -r @hydrooj/register packages/utils/tests/subtask.spec.ts && node test/entry.js",
"benchmark": "cross-env BENCHMARK=true node test/entry.js",
"lint": "eslint packages plugins modules --ext .ts,.tsx,.jsx --fix",
"lint:ci": "eslint packages plugins modules --ext .ts,.tsx,.jsx --max-warnings=0",
@@ -26,7 +26,7 @@
"debug": "node --trace-warnings --async-stack-traces --trace-deprecation packages/hydrooj/bin/hydrooj --debug --template",
"start": "packages/hydrooj/bin/hydrooj",
"postinstall": "node build/prepare.js",
"gen-patch": "node -r @hydrooj/utils/lib/register build/gen-patch.ts",
"gen-patch": "node -r @hydrooj/register build/gen-patch.ts",
"hydrooj": "./node_modules/.bin/hydrooj"
},
"version": "1.0.0",
@@ -36,7 +36,7 @@
"@types/autocannon": "^7.12.5",
"@types/chai": "^4.3.11",
"@types/cross-spawn": "^6.0.6",
"@types/node": "^20.10.6",
"@types/node": "^20.11.5",
"@types/semver": "^7.5.6",
"autocannon": "^7.14.0",
"cac": "^6.7.14",
@@ -53,8 +53,8 @@
"inspectpack": "^4.7.1",
"mongodb-memory-server": "^9.1.6",
"nyc": "^15.1.0",
"ora": "^7.0.1",
"package-json": "^8.1.1",
"ora": "^8.0.1",
"package-json": "^9.0.0",
"semver": "^7.5.4",
"simple-git": "^3.22.0",
"supertest": "^6.3.4",