makes
makes copied to clipboard
ESM support
makeNodeJsModule and makeNodeJsEnvironment don't work well with ECMAScript modules (.mjs files) as they don't support resolution from directories specified in NODE_PATH https://nodejs.org/api/esm.html#no-node_path
ESM are likely to become more common with time so this would be a good improvement to future-proof nodejs support
to be clear, this is not an issue specific to makes but I'll give it a try to improve nodejs support here
Give this a look: https://github.com/nix-community/dream2nix
From what I have heard they have very solid support for NPM now
Closing in favor of #721