fix publish script

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-10-12 14:09:45 +02:00
parent 5e382911a8
commit 7d474e8444
3 changed files with 13 additions and 9 deletions

BIN
bun.lockb

Binary file not shown.

View File

@@ -13,8 +13,5 @@
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"tsup": "^7.2.0"
}
}

View File

@@ -46,16 +46,23 @@ function main() {
...properties,
})
execSync('bunx tsup', {
cwd: './packages/sdk',
})
try {
execSync('npx tsup', {
cwd: './packages/sdk',
})
execSync('npx tsup', {
cwd: './packages/types',
})
} catch(error) {
console.log('Build failed');
console.log(error);
process.exit(1)
}
execSync('npm publish --access=public', {
cwd: './packages/sdk',
})
execSync('bunx tsup', {
cwd: './packages/types',
})
execSync('npm publish --access=public', {
cwd: './packages/types',
})