sdk changes

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-11 21:31:12 +01:00
parent 484a6b1d41
commit 447fa5896e
65 changed files with 9428 additions and 723 deletions

View File

@@ -53,6 +53,11 @@ function main() {
};
try {
savePackageJson(workspacePath('./packages/types/package.json'), {
...typesPkg,
...properties,
});
for (const name of sdkPackages) {
const pkgJson = require(workspacePath(`./packages/${name}/package.json`));
savePackageJson(workspacePath(`./packages/${name}/package.json`), {
@@ -67,11 +72,6 @@ function main() {
),
});
}
savePackageJson(workspacePath('./packages/types/package.json'), {
...typesPkg,
...properties,
});
} catch (error) {
exit('Update JSON files', error);
}
@@ -79,14 +79,15 @@ function main() {
console.log('✅ Update JSON files');
try {
execSync('pnpm build', {
cwd: workspacePath(`./packages/types`),
});
for (const name of sdkPackages) {
execSync('pnpm build', {
cwd: workspacePath(`./packages/${name}`),
});
}
execSync('pnpm build', {
cwd: workspacePath(`./packages/types`),
});
} catch (error) {
exit('Failed build packages', error);
}

View File

@@ -1,9 +1,9 @@
{
"entry": ["index.ts", "cdn.ts"],
"format": ["cjs", "esm", "iife"],
"entry": ["index.ts"],
"format": ["cjs", "esm"],
"dts": true,
"splitting": false,
"sourcemap": false,
"sourcemap": true,
"clean": true,
"minify": true
}