File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export function getPackageInfo(
20
20
pkgName : string ,
21
21
getPkgDir : ( ( pkg : string ) => string ) | undefined = ( pkg ) => `packages/${ pkg } ` ,
22
22
) {
23
- const pkgDir = getPkgDir ( pkgName ) ;
23
+ const pkgDir = path . resolve ( getPkgDir ( pkgName ) ) ;
24
24
const pkgPath = path . resolve ( pkgDir , "package.json" ) ;
25
25
const pkg = JSON . parse ( readFileSync ( pkgPath , "utf-8" ) ) as {
26
26
name : string ;
@@ -135,7 +135,7 @@ export function updateVersion(pkgPath: string, version: string): void {
135
135
}
136
136
137
137
export async function publishPackage (
138
- pkdDir : string ,
138
+ pkgDir : string ,
139
139
tag ?: string ,
140
140
provenance ?: boolean ,
141
141
) : Promise < void > {
@@ -147,7 +147,7 @@ export async function publishPackage(
147
147
publicArgs . push ( `--provenance` ) ;
148
148
}
149
149
await runIfNotDry ( "npm" , publicArgs , {
150
- cwd : pkdDir ,
150
+ cwd : pkgDir ,
151
151
} ) ;
152
152
}
153
153
You can’t perform that action at this time.
0 commit comments