Open maxpatiiuk opened 2 months ago
In this scenario, you can set the packageJson
option to false
and it will skip this step, so you can manually add the property.
In this scenario, you can set the packageJson option to false and it will skip this step, so you can manually add the property.
To clarify, jet-brains-integration
is doing fs.readFileSync()
in the global scope - this is before you get a chance to pass packageJson:false
.
In my case, the exception was occurring when I wasn't even calling jet-brains-integration directly - it was just imported indirectly as part of another import - I had to restructure my code to avoid htat.
jet-brains-integration
is assuming thatprocess.cwd()
is pointing to package root. If it is not, it crashes at this line:https://github.com/break-stuff/cem-tools/blob/940144cb90d42c152506b0fa9be6adf2ac6fb5e4/packages/jet-brains-integration/src/web-types-generator.ts#L35
Since the fs access is in the global scope, it crashes even if the code didn't directly generate the manifest - any indirect imports to
jet-brains-integration
trigger the error:Suggestions: