Skip to content

Commit

Permalink
fix(scripts-tasks): don't run swc:compile task twice (#31100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Apr 17, 2024
1 parent e5532ff commit b888e95
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/tasks/src/api-extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function apiExtractor(): TaskFunction {
const { isUsingTsSolutionConfigs, packageJson, tsConfigs } = getTsPathAliasesConfig();

if (configsToExecute.length === 0) {
return noop;
return task('api-extractor-noop', noop);
}

/**
Expand Down
1 change: 0 additions & 1 deletion scripts/tasks/src/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export function preset() {
'copy',
condition('sass', () => metadata.hasSass()),
parallel('swc:compile', 'generate-api'),
'swc:compile',
);
}).cached!();

Expand Down

0 comments on commit b888e95

Please sign in to comment.