|
69 | 69 | mv "${PACKAGE_PATH}/.repo-metadata2.json" "${PACKAGE_PATH}/.repo-metadata.json" |
70 | 70 | fi |
71 | 71 |
|
72 | | -# update system tests scripts |
73 | | -echo "adding compile step to system-test" |
74 | | -# using a temp file because jq doesn't like writing to the input file as it reads |
75 | | -jq -r ".scripts[\"system-test\"] = \"npm run compile && c8 mocha build/system-test\"" ${PACKAGE_PATH}/package.json > ${PACKAGE_PATH}/package2.json |
76 | | -mv ${PACKAGE_PATH}/package2.json ${PACKAGE_PATH}/package.json |
77 | | - |
78 | | -echo "adding compile step to samples-test" |
79 | | -# using a temp file because jq doesn't like writing to the input file as it reads |
80 | | -jq -r ".scripts[\"samples-test\"] = \"npm run compile && cd samples/ && npm link ../ && npm i && npm test\"" ${PACKAGE_PATH}/package.json > ${PACKAGE_PATH}/package2.json |
81 | | -mv ${PACKAGE_PATH}/package2.json ${PACKAGE_PATH}/package.json |
82 | | - |
83 | 72 | echo "updating repository object type" |
84 | 73 | # using a temp file because jq doesn't like writing to the input file as it reads |
85 | | -jq -r ".repository = {\"type\": \"git\", \"directory\": \"packages/${PACKAGE_NAME}\", \"url\": \"https://github.com/googleapis/google-cloud-node.git\"}" ${PACKAGE_PATH}/package.json > ${PACKAGE_PATH}/package2.json |
| 74 | +jq -r ".repository = {\"type\": \"git\", \"directory\": \"${PACKAGE_PATH}\", \"url\": \"https://github.com/googleapis/google-cloud-node.git\"}" ${PACKAGE_PATH}/package.json > ${PACKAGE_PATH}/package2.json |
86 | 75 | mv ${PACKAGE_PATH}/package2.json ${PACKAGE_PATH}/package.json |
87 | 76 |
|
88 | 77 | echo "updating homepage" |
89 | 78 | # using a temp file because jq doesn't like writing to the input file as it reads |
90 | | -jq -r ".homepage = \"https://github.com/googleapis/google-cloud-node/tree/main/packages/${PACKAGE_NAME}\"" ${PACKAGE_PATH}/package.json > ${PACKAGE_PATH}/package2.json |
| 79 | +jq -r ".homepage = \"https://github.com/googleapis/google-cloud-node/tree/main/${PACKAGE_PATH}\"" ${PACKAGE_PATH}/package.json > ${PACKAGE_PATH}/package2.json |
91 | 80 | mv ${PACKAGE_PATH}/package2.json ${PACKAGE_PATH}/package.json |
92 | 81 |
|
93 | 82 | if !(test -f "${PACKAGE_PATH}/owlbot.py"); then |
|
0 commit comments