Skip to content

Commit

Permalink
fix(js): fix inlining for swc
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Jul 28, 2023
1 parent 7d57bfe commit 58ba439
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/js/src/executors/swc/swc.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,11 @@ export async function* swcExecutor(
if (!isInlineGraphEmpty(inlineProjectGraph)) {
options.projectRoot = '.'; // set to root of workspace to include other libs for type check

// remap paths for SWC compilation
options.swcCliOptions.srcPath = options.swcCliOptions.swcCwd;
options.swcCliOptions.swcCwd = '.';
options.swcCliOptions.destPath = options.swcCliOptions.destPath
.split('../')
.at(-1)
.concat('/', options.swcCliOptions.srcPath);
options.swcCliOptions.srcPath = root.split('/').slice(0, -1).join('/'); // set to root of libraries to include other libs
options.swcCliOptions.destPath = join(
_options.outputPath,
options.swcCliOptions.srcPath
); // new destPath is dist/{libs}/{parentLib}/{libs}

// tmp swcrc with dependencies to exclude
// - buildable libraries
Expand Down

0 comments on commit 58ba439

Please sign in to comment.