From fe6f4a8f39b6d572af30701d679a88f8e2834e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Sat, 4 Nov 2023 13:48:06 +0100 Subject: [PATCH] fix publish script --- tooling/publish/publish.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tooling/publish/publish.ts b/tooling/publish/publish.ts index 6b92adb0..e47f0153 100644 --- a/tooling/publish/publish.ts +++ b/tooling/publish/publish.ts @@ -17,6 +17,7 @@ function exit(message: string, error?: unknown) { console.log(`❌ ${message}`); if (error instanceof Error) { console.log(`Error: ${error.message}`); + console.log(error); } else if (typeof error === 'string') { console.log(`Error: ${error}`); } @@ -82,11 +83,11 @@ function main() { try { execSync('npm publish --access=public', { - cwd: './packages/sdk', + cwd: workspacePath('./packages/sdk'), }); execSync('npm publish --access=public', { - cwd: './packages/types', + cwd: workspacePath('./packages/types'), }); } catch (error) { exit('Failed publish packages', error);