Skip to content

Commit 4291322

Browse files
committed
feat(yargs): update yargs to 18.0.0
New yargs version bundling is failing, because it is newly ESM-only module: * It is not included in `esbuild` and `pkg` does not patch [ESM import paths][1]. * If added into `esbuild`, the transpiled `import.meta.url` is empty and execution fails. Fix this by letting `esbuild` transpile also `yargs` to CJS, but provide a sensible value for `import.meta.url` as mentioned in the esbuild [bug report][2]. While at it, also update `@yao-pkg/pkg` to support newer Node.js runtime. [1]: yao-pkg/pkg#16 (comment) [2]: evanw/esbuild#2441 (comment) Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
1 parent 679e8af commit 4291322

File tree

2 files changed

+224
-33
lines changed

2 files changed

+224
-33
lines changed

0 commit comments

Comments
 (0)