Starcounter-Jack / JSON-Patch

Lean and mean Javascript implementation of the JSON-Patch standard (RFC 6902). Update JSON documents using delta patches.
MIT License
1.78k stars 215 forks source link

3.1.1 commonjs delivery corrupted on npm #323

Closed paztis closed 3 months ago

paztis commented 3 months ago

The delivery 3.1.1 version of fast-json-patch has got issues in its compilation

it generates

__exportStar(require("./src/core"), exports);
__exportStar(require("./src/duplex"), exports);

while these files no more exist at all (it is supposed to be ./commonjs/core)

ESM version is ok

The critical thing is this is delivered on NPM and because of it it is impossible ot use the commonjs version...

I don't ask for a fix of the origin, but is someone has the NPM credentials and can publish a fixed module it will be great

paztis commented 3 months ago

sorry bad issue. on my sidwe it was because the index.ts was preserved in the delivery... and retranspiled badly by my webpack