-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
This issue applies to JSON-Patch-OT, JSON-Patch-Queue, and JSON-Patch-OT-agent.
Because many people rely on these repos and use files in src directly. And because we learned the hard way with fast-json-patch that a Node module that supports TS and ES6 imports and runs in the browser without bundling is buggy (here: Starcounter-Jack/JSON-Patch#140). My preliminary plan is to do the following:
- Keep the files in
srcuntouched, logic wise. And emit a warning asking people to use the bundle indistfolder. With the option to use a minified bundle. - Create a new, temporary dir, called
newsrc, and put the Node friendly files there. Bundle them with webpack if needed, and put their compiled Browser + Node friendly versions indist. And also make sure to throw a warning in these files to usedistfolder in production. These files shouldn't be used at all except for development. Everything is indist.
By the time all people start using dist folder, nobody will be using neither src or newsrc. And this will give us the freedom to remove the old files, and rename our new folder to src and live happliy ever after.
Metadata
Metadata
Assignees
Labels
No labels