We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8c65e0 commit d1e73f9Copy full SHA for d1e73f9
scripts/install-npm-packages.mjs
@@ -103,10 +103,10 @@ async function installPackage(packageInfo) {
103
// Check if installation is complete and valid.
104
if (existsSync(installMarkerPath) && existsSync(packageJsonPath)) {
105
try {
106
- // Read non-editable version for checking to avoid circular reference issues.
107
- const existingPkgJson = await readPackageJson(installedPath, {
108
- normalize: true,
109
- })
+ // Read package.json directly to avoid readPackageJson issues with circular references.
+ const existingPkgJson = JSON.parse(
+ await fs.readFile(packageJsonPath, 'utf8'),
+ )
110
const markerData = JSON.parse(
111
await fs.readFile(installMarkerPath, 'utf8'),
112
)
0 commit comments