Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 9a551c5

Browse files
authored
fix(scripts): use jq binary from node_modules in resolve:crcomlib (#25)
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.
1 parent 1c60f70 commit 9a551c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"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",
3131
"build:onestep:touchscreen": "yarn build && yarn build:archive && yarn build:deploy:touchscreen",
3232
"build:onestep:web": "yarn build && yarn build:archive && yarn build:deploy:web",
33-
"resolve:crcomlib": "jq '.main = \"build_bundles/cjs/cr-com-lib.js\"' $npm_package_crestron_crcomlib_packageJson | sponge $npm_package_crestron_crcomlib_packageJson",
33+
"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",
3434
"lint": "eslint .",
3535
"lint:fix": "eslint --fix .",
3636
"commit": "git-cz",

0 commit comments

Comments
 (0)