wix-incubator / lerna-script

Lerna addon for adding custom tasks
MIT License
164 stars 13 forks source link

Spoils lerna on Windows #335

Open weidox opened 4 years ago

weidox commented 4 years ago

We added lerna-script to our project, and for devs using Windows, simple running of lerna command does not work anymore. It fails by parsing lerna.js (windows script error), or setting node to run .js scripts, lerna then fails silently and does nothing when asked to build or test. This happens even for empty lerna.js file, no matter if executed by windows script or node.

Enrice commented 4 years ago

windows scripting host per default wants to execute .js files. you have to remove this extension from PATHEXT environment variable. node normally does not do this. define a script in your package.json and npm will deal correctly with it, calling lerna out of node_modules/lerna/.bin. lerna.js is not to be called directly. its name clashes with lerna. lerna-script should have given this file another name.