Skip to content

Commit

Permalink
fix: use name from package.json when building externals dependencies …
Browse files Browse the repository at this point in the history
…object

Previously implemented by 6563d0e (v1.2.1) and broken by 2a4e311 (v1.3.0)
  • Loading branch information
Julusian authored Dec 27, 2023
1 parent aae047a commit 339d2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ if (fs.existsSync(webpackExtPath)) {
for (const external of Object.keys(extGroup)) {
const extPath = await findUp('package.json', { cwd: require.resolve(external) })
const extJson = JSON.parse(await fs.readFile(extPath))
packageJson.dependencies[external] = extJson.version
packageJson.dependencies[extJson.name] = extJson.version
}
}
}
Expand Down

0 comments on commit 339d2ac

Please sign in to comment.