This repository was archived by the owner on Apr 13, 2025. It is now read-only.
This repository was archived by the owner on Apr 13, 2025. It is now read-only.
Convert nodecg-io-cli to ES Modules #829
Open
Description
Description
Our cli should be refactored to use ES modules instead of CommonJS. Since our minimum supported node.js version is now 14 we can finally do this because ES modules are only officially supported in node.js 14 and up. Some dependencies like axios
(see codeoverflow-org/nodecg-io-cli#307) require ES modules in order to be able to use the newest version.
nodecg-io will remain CommonJS for now because NodeCG 1.9.0 is required to be able to use ES modules in NodeCG which is not widely used yet. For the rest of nodecg-io converting to ES modules might make sense when NodeCG v2 is released and we support it.
I have started working on this here: codeoverflow-org/nodecg-io-cli#308
References
node.js ES module docs
jest ES module docs
TypeScript modules