Closed Hotell closed 5 years ago
I've spent 2 hours with this... for anyone else experiencing this issue, fix is following: wrap globs within double quotes 🤦🤦
{
"build:css": "lerna exec --scope @twisto/icons -- 'linaria --config $LERNA_ROOT_PATH/linaria.config.js --out-dir dist/styles --source-root dist --insert-css-requires dist \"src/**/*.tsx\" \"src/**/*.ts\"'"
}
Environment
macOs 10.14.4 node 8
Description
When linaria CLI is executed via lerna, file globs resolution doesn't work properly (used within monorepo)
Both following use cases are broken when
linaria
is executed via lerna:1. via root package.json
2. via root package.json script by executing local package.json script
This might be indeed yargs bug, because everything depends on
argv._
in linaria/cli source.Globs spread that are applied (lerna vs non lerna exection):