@@ -3,17 +3,17 @@ import { packages, type ArkPackage } from "./shared.ts"
33
44const tagsToPublish : string [ ] = [ ]
55
6- const existingTags = getShellOutput ( "git tag" ) . split ( "\n" )
6+ const existingTags = getShellOutput ( "git" , [ " tag"] ) . split ( "\n" )
77
88const publishPackage = ( pkg : ArkPackage , alias ?: string ) => {
99 const tagName = `${ alias ?? pkg . name } @${ pkg . version } `
1010
1111 if ( ! existingTags . includes ( tagName ) ) {
1212 if ( alias ) rewritePackageJsonName ( pkg . packageJsonPath , alias )
1313
14- shell ( ` git tag ${ tagName } ` )
14+ shell ( " git" , [ " tag" , tagName ] )
1515 tagsToPublish . push ( tagName )
16- shell ( "pnpm publish --no-git-checks" , { cwd : pkg . path } )
16+ shell ( "pnpm" , [ " publish" , " --no-git-checks"] , { cwd : pkg . path } )
1717
1818 if ( alias ) rewritePackageJsonName ( pkg . packageJsonPath , pkg . name )
1919 }
@@ -34,7 +34,7 @@ for (const pkg of packages) {
3434 }
3535}
3636
37- shell ( "git push --tags" )
37+ shell ( "git" , [ " push" , " --tags"] )
3838
3939for ( const tagName of tagsToPublish )
40- shell ( `gh release create ${ tagName } --latest` )
40+ shell ( "gh" , [ " release" , " create" , tagName , " --latest" ] )
0 commit comments