Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi folder wildcard does not seem to work with $npm_package_config #109

Open
ggedde opened this issue Mar 25, 2022 · 0 comments
Open

Multi folder wildcard does not seem to work with $npm_package_config #109

ggedde opened this issue Mar 25, 2022 · 0 comments

Comments

@ggedde
Copy link

ggedde commented Mar 25, 2022

This works:

"scripts": {
  "watch-js": "chokidar 'public/assets/js/**/*.js' -c 'npm run build-js'"
}

This does not:

"config": {
  "assets_dir": "public/assets"
},
"scripts": {
  "watch-js": "chokidar $npm_package_config_assets_dir/js/**/*.js -c 'npm run build-js'",
}

It does see changes to public/assets/js/inc/some.js
But it does not see changes to public/assets/js/main.js
Only replacing $npm_package_config_assets_dir with the real path works for both files.
This may be an issue with quotes and you can't use quotes with $npm_package_config_assets_dir So not sure how to resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant