Skip to content

Merging from Devel: tempt to move eggs to ESM module

Piero Proietti requested to merge devel into master

Due the newcome ink@4.0.0 I tried to move from commonjs to ESM modules.

I replace package.json "type": "commonjs" with "type": "module", and inserted in tsconfig

    "module": "Node16",
    "moduleResolution": "node",

After that I changed every import to add extesions .js.

Unfortunately I was not able to create package, troubles with inquirer, strange enought, becouse i worked with inquirer@8.0.0 not inquirer@9.0.0 who is ESM pure. So - after same temps - I was able to build again going back to ink@3.2.0 and inquirer@8 but removing "moduleResolution": "node16" to "moduleResolution": "node" from tsconfig.json.

I will merge becouse it was a long history to edit everithing and in all the way - first or late - we will switch to ESM.

Merge request reports

Loading