Skip to content

Commit

Permalink
fix(nx-ignore): install swc to transpile local plugins (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo authored Dec 20, 2023
1 parent 29228a6 commit 58751c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/nx-ignore/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ function installTempNx(root: string, plugins: string[]): string | null {
nx: deps['nx'],
typescript: deps['typescript'],
};
// SWC is required when transpiling local plugins
if (deps['@swc/core'] && deps['@swc-node/register']) {
json.dependencies['@swc/core'] = deps['@swc/core'];
json.dependencies['@swc-node/register'] = deps['@swc-node/register'];
}
let devkitNeeded = false;
plugins.forEach((plugin) => {
if (deps[plugin]) {
Expand Down

0 comments on commit 58751c1

Please sign in to comment.