sdk changes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user