Skip to content

Commit

Permalink
fix(scripts): use jq binary from node_modules in resolve:crcomlib (#25)
Browse files Browse the repository at this point in the history
The resolve:crcomlib script will fail if the jq binary is not installed globally on the local machine. As node-jq installs a local copy of the jq binary into node_modules, this binary should be used so the script runs successfully regardless of whether the user has jq installed on their local machine or not.
  • Loading branch information
damienbutt authored Apr 13, 2022
1 parent 1c60f70 commit 9a551c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build:deploy:web": "yarn ch5-cli deploy -p -H $npm_package_crestron_project_web_url -t $npm_package_crestron_project_web_type dist/$npm_package_name.ch5z",
"build:onestep:touchscreen": "yarn build && yarn build:archive && yarn build:deploy:touchscreen",
"build:onestep:web": "yarn build && yarn build:archive && yarn build:deploy:web",
"resolve:crcomlib": "jq '.main = \"build_bundles/cjs/cr-com-lib.js\"' $npm_package_crestron_crcomlib_packageJson | sponge $npm_package_crestron_crcomlib_packageJson",
"resolve:crcomlib": "./node_modules/node-jq/bin/jq '.main = \"build_bundles/cjs/cr-com-lib.js\"' $npm_package_crestron_crcomlib_packageJson | sponge $npm_package_crestron_crcomlib_packageJson",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"commit": "git-cz",
Expand Down

0 comments on commit 9a551c5

Please sign in to comment.