mono项目开发模板,内置cli管理构建
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

46 lines
1.1 KiB

{
"name": "dm-root",
"private": true,
"type": "module",
"workspaces": [
"packages/*",
"buildin/*"
],
"description": "dm-pkg",
"files": [
"dist"
],
"scripts": {
"cli:build": "bun --elide-lines=0 --filter dm build && bun run cli:install",
"cli:install": "bun add dm@workspace -D",
"build": "bun --elide-lines=0 --filter ./packages/$1 build",
"dev": "bun --elide-lines=0 --filter ./packages/$1 dev",
"example": "bun --elide-lines=0 --filter ./packages/example dev",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"test": "vitest",
"commit": "changeset",
"version": "changeset version",
"release": "changeset publish",
"postinstall": "lefthook install"
},
"catalog": {
"cac": "^7.0.0",
"tsdown": "^0.21.8",
"utils": {
"lodash": "^4.18.1",
"@types/node": "^22.7.9"
}
},
"devDependencies": {
"@changesets/cli": "^2.30.0",
"@prettier/plugin-oxc": "^0.1.3",
"@types/node": "^22.7.9",
"dm": "workspace:*",
"lefthook": "^2.1.5",
"oxlint": "^1.59.0",
"tsdown": "^0.21.8",
"typescript": "^6.0.2",
"vitest": "^4.1.4"
}
}