ExtendScript / extendscriptr

An NPM command line tool to compile modern javascript (es5 & es6) into executable extendscript (es3)
Do What The F*ck You Want To Public License
153 stars 15 forks source link

extendscriptr: command not found #47

Closed kostimarko closed 5 years ago

kostimarko commented 5 years ago

I've installed the library, but every time I try to run extendscriptr --script src/Layers_To_PNG.js --output dist/Layer_To_PNG_v2.jsx I get extendscriptr: command not found

node: 8.11.3 npm: 5.6.0

What am I doing wrong?

kostimarko commented 5 years ago

I didn't install the library globally, after installing it globally it works

ff6347 commented 5 years ago

I suggest not to install node_modules globally. When you install it locally you can add it to a npm script package.json

{
 "scripts":{
 "build": "extendscriptr --script src/Layers_To_PNG.js --output 
 dist/Layer_To_PNG_v2.jsx"
 }
}

and run it with npm run build