vercel / pkg

Package your Node.js project into an executable
https://npmjs.com/pkg
MIT License
24.33k stars 1.02k forks source link

Treat other node extensions (.mjs, .cjs) as js #1913

Closed rotu closed 1 year ago

rotu commented 1 year ago

silences the warning:

Warning Non-javascript file is specified in 'scripts'.
  Pkg will probably fail to parse. Specify *.js in glob.
  /path/to/file.cjs

Note I was on the fence about adding mjs and considered just adding a isDotCJS function. I figure this is probably less surprising, especially if the user has "type": "module" in their package.json`.

github-actions[bot] commented 1 year ago

This pull-request is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this pull-request entirely you can add the no-stale label

github-actions[bot] commented 1 year ago

This pull-request is now closed due to inactivity, you can of course reopen or reference this pull-request if you see fit.