How can I delete all the javascript files in a Node.js project, excluding those within the node_module directory, regardless of the operating system? I've attempted to achieve this using the `del-cli` npm package with the following script:
del '**/*.js' '!**/node_module/*.js'
Unfortunately, this method is deleting js files from the node_module directory, causing me to run `npm install` after each deletion. Is there a better way to accomplish this task?