babel-relay-plugin-loader icon indicating copy to clipboard operation
babel-relay-plugin-loader copied to clipboard

Breaks when installed via pnpm or ied

Open schickling opened this issue 9 years ago • 3 comments

I guess this line (https://github.com/BerndWessels/babel-relay-plugin-loader/blob/master/index.js#L7) breaks compatibility in non-standard cases.

schickling avatar Mar 05 '16 13:03 schickling

@schickling Can you explain a bit further.

I haven't used pnpm or ied ever - not even heard about it until now.

I am happy to take PRs or make you a collaborator if you like to provide a fix.

Cheers Bernd

BerndWessels avatar Mar 09 '16 19:03 BerndWessels

Almost the same problem with jspm: package.json is assumed to be at the location ../.. from this module. I guess it could be possible to pass an option to the plugin containing the path to the schema.json instead of loading it from package.json?

IcanDivideBy0 avatar Jun 05 '16 17:06 IcanDivideBy0

@IcanDivideBy0 sure, would be great if you could provide a PR and I can pull it then, or if you like you can become a collaborator of this repo. Cheers Bernd

BerndWessels avatar Jun 08 '16 03:06 BerndWessels