From 8cf7a0ddce5c763bfc0c814847c364c355f198b8 Mon Sep 17 00:00:00 2001 From: Marija Najdova Date: Wed, 7 Jul 2021 14:18:41 +0200 Subject: [PATCH] [core] Fix generation of package.json file on Windows (#27160) [core] Fix generation of package.json file on Windows (#27160) --- scripts/copy-files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/copy-files.js b/scripts/copy-files.js index bd00bda2f1a9e4..080b1b441ef228 100644 --- a/scripts/copy-files.js +++ b/scripts/copy-files.js @@ -31,7 +31,7 @@ async function createModulePackages({ from, to }) { directoryPackages.map(async (directoryPackage) => { const packageJson = { sideEffects: false, - module: path.join('../esm', directoryPackage, 'index.js'), + module: path.posix.join('../esm', directoryPackage, 'index.js'), typings: './index.d.ts', }; const packageJsonPath = path.join(to, directoryPackage, 'package.json');