lerna-script icon indicating copy to clipboard operation
lerna-script copied to clipboard

Spoils lerna on Windows

Open weidox opened this issue 5 years ago • 1 comments

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.

weidox avatar Dec 31 '19 10:12 weidox

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.

Enrice avatar May 23 '20 10:05 Enrice