Helper scripts to build CodeMirror packages.
The exports (build
and watch
) from this package build packages
that conform to the conventions of the various @codemirror
packages.
They do the following:
-
Mangle the code to convert our
///
doc comments to/** */
comments, so that TypeScript will not strip them. -
Run the TypeScript compiler, catching the output in memory.
-
Run rollup and rollup-plugin-dts on the result to emit the CommonJS and ES modules, as well as a bundled
.d.ts
file, todist/
.
There's also a cm-buildhelper
binary which builds the main file
specified as its first argument. This is used by the individual
packages in their prepare
scripts.