22// Tag and publish the VS Code extension in one pass:
33// preflight -> bump -> commit -> build -> package+verify -> publish -> tag -> push.
44//
5- // pnpm --filter pythinker-code run release 0.8.3
6- // pnpm --filter pythinker-code run release 0.8.3 --dry-run
5+ // pnpm --filter pythinker run release 0.8.3
6+ // pnpm --filter pythinker run release 0.8.3 --dry-run
77//
88// The Marketplace token is read from the macOS keychain, so it never reaches a
99// shell history or a file. Store it once with:
@@ -70,7 +70,7 @@ async function assertUnpublished(version) {
7070 const response = await fetch ( 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery' , {
7171 method : 'POST' ,
7272 headers : { 'Content-Type' : 'application/json' , Accept : 'application/json;api-version=7.1-preview.1' } ,
73- body : JSON . stringify ( { filters : [ { criteria : [ { filterType : 7 , value : 'pymodel.pythinker-code ' } ] } ] , flags : 914 } ) ,
73+ body : JSON . stringify ( { filters : [ { criteria : [ { filterType : 7 , value : 'pymodel.pythinker' } ] } ] , flags : 914 } ) ,
7474 } ) ;
7575 if ( ! response . ok ) {
7676 console . warn ( `Could not reach the Marketplace to check for ${ version } ; continuing.` ) ;
@@ -119,7 +119,7 @@ async function main() {
119119 // failed build — otherwise the next real run trips its own clean-tree check.
120120 try {
121121 run ( 'pnpm' , [ 'build' ] ) ;
122- run ( 'pnpm' , [ '--filter' , 'pythinker-code ' , 'run' , 'package:platform' ] ) ;
122+ run ( 'pnpm' , [ '--filter' , 'pythinker' , 'run' , 'package:platform' ] ) ;
123123 console . log ( `\nDry run: built and verified ${ version } . Nothing published, nothing tagged.` ) ;
124124 } finally {
125125 writeFileSync ( MANIFEST , originalManifest ) ;
@@ -128,23 +128,23 @@ async function main() {
128128 }
129129
130130 run ( 'pnpm' , [ 'build' ] ) ;
131- run ( 'pnpm' , [ '--filter' , 'pythinker-code ' , 'run' , 'package:platform' ] ) ;
131+ run ( 'pnpm' , [ '--filter' , 'pythinker' , 'run' , 'package:platform' ] ) ;
132132
133133 // Commit before publishing so the shipped bits always correspond to a commit,
134134 // and tag only once the Marketplace has actually accepted them.
135135 run ( 'git' , [ 'add' , 'apps/vscode/package.json' ] ) ;
136136 run ( 'git' , [ 'commit' , '-m' , `chore(vscode): release ${ version } ` ] ) ;
137137
138138 try {
139- run ( 'pnpm' , [ '--filter' , 'pythinker-code ' , 'run' , 'publish:vsix' ] , { env : { ...process . env , VSCE_PAT : vscePat } } ) ;
139+ run ( 'pnpm' , [ '--filter' , 'pythinker' , 'run' , 'publish:vsix' ] , { env : { ...process . env , VSCE_PAT : vscePat } } ) ;
140140 } catch ( error ) {
141141 // The version bump is already committed and some targets may already be
142142 // live, so say exactly how to finish rather than leaving it to be worked out.
143143 throw new Error (
144144 `${ error instanceof Error ? error . message : String ( error ) } \n\n` +
145145 `${ version } is partly published and NOT tagged. The publish summary above lists which\n` +
146146 `targets are live; published ones are skipped on a re-run. Finish with:\n` +
147- ` pnpm --filter pythinker-code run publish:vsix\n` +
147+ ` pnpm --filter pythinker run publish:vsix\n` +
148148 ` git tag -a ${ tag } -m "Pythinker Code VS Code extension ${ version } "\n` +
149149 `Do not bump the version again — ${ version } is already consumed.` ,
150150 ) ;
@@ -155,7 +155,7 @@ async function main() {
155155 // Open VSX serves Cursor / VSCodium / Windsurf, but it must never undo a
156156 // successful Marketplace publish.
157157 try {
158- run ( 'pnpm' , [ '--filter' , 'pythinker-code ' , 'run' , 'publish:ovsx' ] , { env : { ...process . env , OVSX_PAT : ovsxPat } } ) ;
158+ run ( 'pnpm' , [ '--filter' , 'pythinker' , 'run' , 'publish:ovsx' ] , { env : { ...process . env , OVSX_PAT : ovsxPat } } ) ;
159159 } catch ( error ) {
160160 console . warn ( `Open VSX publish failed, Marketplace is live: ${ error instanceof Error ? error . message : String ( error ) } ` ) ;
161161 }
0 commit comments