File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11import fs from "node:fs" ;
22import node_path from "node:path" ;
3- import { build , emptyDir } from "@deno/dnt" ;
3+ import { build , BuildOptions , emptyDir } from "@deno/dnt" ;
44import { iter_map_not_null } from "@gaubee/util/collections" ;
55import { globToRegExp , isGlob } from "@std/path" ;
66import { $ } from "@gaubee/nodekit/shell" ;
@@ -25,6 +25,8 @@ export const dntMonorepo = async (
2525 filter ?: string | string [ ] ;
2626 /** 清空输出文件夹 */
2727 clean ?: boolean ;
28+ /** 构建使用的包管理器 */
29+ packageManager ?: BuildOptions [ 'packageManager' ]
2830 } = { } ,
2931) : Promise < void > => {
3032 const rootDir = normalizeFilePath ( options . rootDir ?? Deno . cwd ( ) ) ;
@@ -139,7 +141,7 @@ export const dntMonorepo = async (
139141 } ,
140142 importMap : import_map_file ,
141143 typeCheck : false ,
142- packageManager : "pnpm" ,
144+ packageManager : options . packageManager ,
143145 skipNpmInstall : true ,
144146 package : {
145147 name : workspace . name ,
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ if (import.meta.main) {
44 rootDir : import . meta. resolve ( "./" ) ,
55 filter : Deno . args [ 0 ] ,
66 clean : Deno . args [ 0 ] === undefined ,
7+ packageManager : "pnpm" ,
78 } ) ;
89}
You can’t perform that action at this time.
0 commit comments