.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. .TH MJS2CJS "1" "September 2022" "mjs2cjs 0.15.1" "User Commands" .SH NAME mjs2cjs \- mjs2cjs .SH SYNOPSIS .B mjs2cjs \fI\,\/\fR .SH DESCRIPTION mjs2cjs uses a generic rollup.config.js to generate a commonjs file in dist subdirectory. .PP Output name is extracted from package.json (field "main") or fallback to index.cjs .SH OPTIONS .HP \fB\-b\fR ("bundle"): build a bundle file .HP \fB\-o\fR ("out"): outfile .HP \fB\-a\fR ("auto"): automatically transform "type:module" package into mix cjs/mjs .PP Note for "\-a" option: This option not only build commonjs file but also modify package.json. And if a debian/index.cjs exists, it is installed and used in "package.json\->exports\->require" field. This permits one to write a wrapper when API change. Option "\-a" is usable if and only if module is a pure ES module (declared as type:module in package.json). .SH COPYRIGHT Copyright \(co 2022 Yadd .PP Licensed under GPL\-2+ (see \fI\,/usr/share/common\-licenses/GPL\-2\/\fP)