Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip discovering metadata in all:build dev mode #28537

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tools/scripts/build-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const DEVEXTREME_NPM_DIR = path.join(ROOT_DIR, 'packages/devextreme/artifacts/np

const injectDescriptions = () => {
sh.pushd(ROOT_DIR);
// Inject descriptions

const DOCUMENTATION_TEMP_DIR = path.join(ARTIFACTS_DIR, 'doc_tmp');
sh.exec(`git clone -b ${MAJOR_VERSION} --depth 1 --config core.longpaths=true https://github.com/DevExpress/devextreme-documentation.git ${DOCUMENTATION_TEMP_DIR}`);

Expand All @@ -43,12 +43,13 @@ const packAndCopy = (outputDir: string) => {
const monorepoVersion = sh.exec('pnpm pkg get version', { silent: true }).stdout.replaceAll('"', '');
const MAJOR_VERSION = monorepoVersion.split('.').slice(0, 2).join('_');

// Prepare metadata
sh.cd(ROOT_DIR);
sh.exec('pnpm run tools:discover-declarations');
sh.exec(`pnpm run tools make-aspnet-metadata --version ${MAJOR_VERSION}`);

if (!devMode) {
sh.exec('pnpm run tools:discover-declarations');
// aspnet metadata will be used in Build custom-tasks to inject aspnet descriptions
sh.exec(`pnpm run tools make-aspnet-metadata --version ${MAJOR_VERSION}`);

injectDescriptions();
}

Expand Down
Loading