Skip to content

Commit 9e1ac9b

Browse files
mydeaclaude
andcommitted
refactor: Move publish logic to lib/publishPackages.ts and call directly
Extract the tarball publishing logic into an importable function in lib/publishPackages.ts and call it directly from registrySetup instead of spawning a subprocess. Remove the old publish-packages.ts script. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5a85236 commit 9e1ac9b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

dev-packages/e2e-tests/lib/publishPackages.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ const repositoryRoot = path.resolve(__dirname, '../../..');
1010
* Publishes all built Sentry package tarballs to the local Verdaccio test registry.
1111
*/
1212
export function publishPackages(): void {
13-
const version = (JSON.parse(readFileSync(path.join(__dirname, '../package.json'), 'utf8')) as { version: string })
14-
.version;
13+
const version = (
14+
JSON.parse(readFileSync(path.join(__dirname, '../package.json'), 'utf8')) as { version: string }
15+
).version;
1516

1617
// Get absolute paths of all the packages we want to publish to the fake registry
1718
// Only include the current versions, to avoid getting old tarballs published as well

0 commit comments

Comments
 (0)