{
"scripts": {
"prepublish": "node -e \"if(process.env.TRAVIS){}else{process.exit(1)}\" && echo true || echo false"
}
}
Win/Mac
~~Evaluate script **Travis** ifwin/mac~~
{
"scripts": {
"prepublish": "node -e \"if(!process.env.TRAVIS)process.exit(1)\" && npm run compile"
}
}
~~bash`"``!``"``'`bat~~
$ node ifTravis.js && npm run compile
~~~~