Skip to content

Commit

Permalink
Fix packing "devextreme-themebuilder" package (#25908)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykoi18 authored Oct 27, 2023
1 parent 0e74de9 commit 85d4d7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 6 additions & 5 deletions build/build-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sh.rm('-rf', DOCUMENTATION_TEMP_DIR);
sh.exec('npm run devextreme:inject-descriptions');

sh.exec('npm run build-dist -w devextreme-main');
sh.exec('npm run build -w devextreme-themebuilder');

// Copy artifacts for DXBuild (Installation)
sh.pushd(path.join(MONOREPO_ROOT, 'packages/devextreme/artifacts'));
Expand Down Expand Up @@ -65,13 +66,13 @@ sh.exec('npm pack', { silent: true });
sh.cp('*.tgz', NPM_OUTPUT_DIR);
sh.popd();

sh.pushd(path.join(MONOREPO_ROOT, 'packages', 'devextreme-themebuilder'))
sh.exec('npm run build');
sh.exec('npm run pack', { silent: true });
sh.cp('dist/*.tgz', NPM_OUTPUT_DIR);
sh.pushd(path.join(MONOREPO_ROOT, 'packages', 'devextreme-themebuilder', 'dist'));
sh.exec(`npm pkg set version="${devextremeNpmVersion}"`);
sh.exec('npm pack', { silent: true });
sh.cp('*.tgz', NPM_OUTPUT_DIR);
sh.popd();

sh.exec('npm run pack --ws --if-present', { silent: true });
sh.exec('npm run pack -w devextreme-angular -w devextreme-react -w devextreme-vue', { silent: true });

sh.cp(path.join(MONOREPO_ROOT, 'packages', 'devextreme-angular', 'npm', 'dist', '*.tgz'), NPM_OUTPUT_DIR);
sh.cp(path.join(MONOREPO_ROOT, 'packages', 'devextreme-react', 'npm', '*.tgz'), NPM_OUTPUT_DIR);
Expand Down
4 changes: 3 additions & 1 deletion build/update-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ if (version == null) {
process.exit(1);
}

sh.set('-e');

const MONOREPO_ROOT = path.join(__dirname, '..');
const packagesPath = path.join(MONOREPO_ROOT, 'packages', '**', 'package.json');
const playgroundsPath = path.join(MONOREPO_ROOT, 'playgrounds', '**', 'package.json');

sh.exec(`npm version ${version} -ws --include-workspace-root --git-tag-version=false --workspaces-update=false`);
sh.exec(`npm version ${version} -ws --allow-same-version --include-workspace-root --git-tag-version=false --workspaces-update=false`);

sh.sed('-i', /"devextreme(-angular|-react|-vue)?": ".*"/, `"devextreme$1": "~${version}"`, [packagesPath, playgroundsPath]);

Expand Down

0 comments on commit 85d4d7b

Please sign in to comment.