Skip to content

Commit

Permalink
chore: fix windows build issue (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
phani-srikar authored May 21, 2024
1 parent 72e714d commit 45c26d9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
"authenticate-e2e-profile": "source scripts/cloud-utils.sh && authenticateWithE2EProfile",
"extract-dependency-licenses": "./scripts/extract-dependency-licenses.sh",
"verify-dependency-licenses-extract": "yarn extract-dependency-licenses && ./scripts/verify-dependency-licenses.sh",
"deprecate": "ts-node scripts/deprecate_release.ts",
"postinstall": "./scripts/postinstall.sh"
"deprecate": "ts-node scripts/deprecate_release.ts"
},
"bugs": {
"url": "https://github.com/aws-amplify/amplify-codegen/issues"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

# set exit on error to true
set -e

# create a new file to store the private packages
# this will be imported and used in the Git Client to determine the packages to deprecate

echo 'export default [' > scripts/components/private_packages.ts
grep -l packages/*/package.json -e '"private": "\?true"\?' | xargs cat | jq .name | tr -s '\n' ',' >> scripts/components/private_packages.ts
echo '];' >> scripts/components/private_packages.ts
4 changes: 4 additions & 0 deletions shared-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ function _deploy {
function _deprecate {
loadCacheFromLinuxBuildJob
echo "Deprecate"

echo "creating private package manifest"
./scripts/create-private-package-manifest.sh

echo "Authenticate with NPM"
if [ "$USE_NPM_REGISTRY" == "true" ]; then
PUBLISH_TOKEN=$(echo "$NPM_PUBLISH_TOKEN" | jq -r '.token')
Expand Down

0 comments on commit 45c26d9

Please sign in to comment.