Skip to content

Commit 2e49842

Browse files
Remove pnpm specific settings during transpilation (#295)
1 parent 452a860 commit 2e49842

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunner.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ class TranspilationRunner(projectPath: Path, tmpTranspileDir: Path, config: Conf
156156
jsonObject.remove("engines")
157157
jsonObject.remove("scripts")
158158
jsonObject.remove("comments")
159+
// remove project specific version restrictions and pnpm settings
160+
jsonObject.remove("resolutions")
161+
jsonObject.remove("pnpm")
159162

160163
packageJson.writeText(mapper.writeValueAsString(json))
161164

0 commit comments

Comments
 (0)