type-git 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -119,6 +119,13 @@ and the runtime checks against argument injection, and neither its bundle nor it
119
119
  declarations include the catalogue. For an application that only calls high-level methods such
120
120
  as `repo.status()`, the bundled size is about 180 KB minified instead of about 1.6 MB.
121
121
 
122
+ Nothing outside `dist/strict/` loads from it, so an application that ships its `node_modules`
123
+ (for example an Electron app) and never imports `type-git/strict` can leave that directory out,
124
+ such as with `"!**/node_modules/type-git/dist/strict/**"` in electron-builder's `files`.
125
+ The strict entry keeps its catalogue in a CommonJS file that both its ESM and CJS builds load, so
126
+ an ESM bundler needs CommonJS interop to bundle `type-git/strict` (esbuild, webpack and Vite have
127
+ it built in; Rollup needs `@rollup/plugin-commonjs`).
128
+
122
129
  ### Advanced Usage
123
130
 
124
131
  For more control over adapters, you can use the factory function: