diff --git a/package.json b/package.json index e6a1843..87e78d9 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ ], "license": "MIT", "scripts": { - "yakumo": "node --import tsx node_modules/yakumo/lib/cli.js", - "build": "tsc -b", + "yakumo": "node --import tsx scripts/yakumo.js", + "build": "yarn yakumo build", "bump": "yarn yakumo version", "dep": "yarn yakumo upgrade", "pub": "yarn yakumo publish", @@ -23,9 +23,11 @@ "devDependencies": { "@cordisjs/eslint-config": "^1.0.4", "@types/chai": "^4.3.11", + "@types/chai-as-promised": "^7.1.8", "@types/node": "^20.10.2", "c8": "^7.14.0", "chai": "^4.3.10", + "chai-as-promised": "^7.1.1", "esbuild": "^0.18.20", "esbuild-register": "^3.5.0", "eslint": "^8.55.0", diff --git a/packages/core/package.json b/packages/core/package.json index 6059ef8..7fb7b9e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -30,27 +30,9 @@ "lib", "src" ], - "scripts": { - "compile:cjs": "esbuild src/index.ts --outfile=lib/index.cjs --bundle --sourcemap --sources-content=false --platform=node --external:cosmokit --target=es2022", - "compile:esm": "esbuild src/index.ts --outfile=lib/index.mjs --bundle --sourcemap --sources-content=false --platform=neutral --external:cosmokit --target=es2022", - "build": "yarn compile:cjs && yarn compile:esm && yarn dtsc", - "test": "node --import tsx --test tests/*.spec.ts", - "test:text": "shx rm -rf coverage && c8 -r text yarn test", - "test:json": "shx rm -rf coverage && c8 -r json yarn test", - "test:html": "shx rm -rf coverage && c8 -r html yarn test" - }, "devDependencies": { "@types/chai": "^4.3.11", - "@types/chai-as-promised": "^7.1.8", - "@types/node": "^20.10.2", - "c8": "^7.14.0", - "chai": "^4.3.10", - "chai-as-promised": "^7.1.1", - "dtsc": "^3.0.1", - "esbuild": "^0.18.20", - "shx": "^0.3.4", - "tsx": "patch:tsx@npm%3A4.7.0#~/.yarn/patches/tsx-npm-4.7.0-86d7b66640.patch", - "typescript": "^5.3.2" + "chai": "^4.3.10" }, "dependencies": { "cosmokit": "^1.5.2" diff --git a/scripts/yakumo.js b/scripts/yakumo.js new file mode 100644 index 0000000..ad1ce85 --- /dev/null +++ b/scripts/yakumo.js @@ -0,0 +1 @@ +import 'yakumo/lib/cli.js'