diff --git a/src/build.ts b/src/build.ts index 65ba7c0..046500e 100644 --- a/src/build.ts +++ b/src/build.ts @@ -96,7 +96,7 @@ export async function build(opts: BuildOptions): Promise { // Write .yarnclean if (isYarn && !fs.existsSync('../.yarnclean')) { - await fs.copyFile(path.join(__dirname, '../.yarnclean'), '.yarnclean'); + await fs.copyFile(path.join(entrypointPath, '../.yarnclean'), '.yarnclean'); } // Cache dir