feat: update build and dev scripts to use tsdown; add tsdown config file
- Changed build script in packages/logic/package.json to use tsdown instead of tsc. - Updated dev script in packages/logic/package.json to use tsdown with watch mode. - Added tsdown as a devDependency in packages/logic/package.json. - Updated pnpm-lock.yaml to include tsdown and its dependencies across various apps. - Created a new tsdown.config.ts file to define build configuration for the workspace.
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"dev": "node -e \"console.log('dev not configured')\"",
|
||||
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/common",
|
||||
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/common --watch",
|
||||
"lint": "node -e \"console.log('lint not configured')\"",
|
||||
"test": "vitest run --config vitest.config.ts"
|
||||
},
|
||||
@@ -15,6 +15,7 @@
|
||||
"js-sha512": "^0.9.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tsdown": "^0.18.3",
|
||||
"vitest": "^4.0.16"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"dev": "node -e \"console.log('dev not configured')\"",
|
||||
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/infra",
|
||||
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/infra --watch",
|
||||
"lint": "node -e \"console.log('lint not configured')\"",
|
||||
"test": "node -e \"console.log('test not configured')\""
|
||||
},
|
||||
@@ -16,6 +16,7 @@
|
||||
"redis": "^4.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prisma": "^5.18.0"
|
||||
"prisma": "^5.18.0",
|
||||
"tsdown": "^0.18.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc -b tsconfig.build.json",
|
||||
"dev": "node -e \"console.log('dev not configured')\"",
|
||||
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/logic",
|
||||
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/logic --watch",
|
||||
"lint": "node -e \"console.log('lint not configured')\"",
|
||||
"test": "vitest run --config vitest.config.ts"
|
||||
},
|
||||
@@ -21,6 +21,7 @@
|
||||
"@sammo-ts/common": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tsdown": "^0.18.3",
|
||||
"vite-tsconfig-paths": "^4.3.2",
|
||||
"vitest": "^4.0.16"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user