Skip to content

Commit

Permalink
Commit missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
paescuj committed Dec 26, 2024
1 parent c5b1c48 commit 1441fc2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/build/worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import path from 'node:path';

export default async ({ targetName, config, targetConfig }) => {
const { default: task } = await import(
`./targets/${targetConfig.target || targetName}/index.js`
);

targetConfig.path = path.join(
config.global.rootDir,
...targetConfig.path.split(path.posix.sep),
);

return task(config, targetConfig);
};

0 comments on commit 1441fc2

Please sign in to comment.