File tree Expand file tree Collapse file tree 1 file changed +13
-18
lines changed
Expand file tree Collapse file tree 1 file changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -69,24 +69,19 @@ jobs:
6969 with :
7070 node-version : 24.x
7171
72- # TODO: Still undecided whether we want to generate shrinkwrap again for the CLI package
73- # - name: Generate npm-shrinkwrap.json (isolated staging)
74- # run: |
75- # set -e
76- # echo "📦 Isolating @ui5/cli for shrinkwrap"
77- # npm ci --omit=dev
78- # STAGE=cli-publish
79- # rm -rf "$STAGE" && mkdir "$STAGE"
80- # echo "↪️ Copying CLI sources"
81- # rsync -a --exclude 'node_modules' packages/cli/ "$STAGE"/
82- # echo "↪️ Copying resolved production dependencies"
83- # rsync -a node_modules/ "$STAGE"/node_modules/
84- # echo "🧹 Pruning extraneous modules inside staging"
85- # (cd "$STAGE" && npm prune --production)
86- # echo "🔒 Running npm shrinkwrap in isolated directory (post-prune)"
87- # (cd "$STAGE" && npm shrinkwrap)
88- # mv "$STAGE"/npm-shrinkwrap.json packages/cli/
89- # echo "✅ npm-shrinkwrap.json placed into packages/cli"
72+ - name : Generate npm-shrinkwrap.json (isolated staging)
73+ run : |
74+ set -e
75+ # Install dependencies
76+ npm ci
77+
78+ # Build all the extractor
79+ cd ./lib/shrinkwrap-extractor
80+ npm ci
81+
82+ # Generate npm-shrinkwrap.json
83+ cd ../../packages/cli
84+ node ../../lib/shrinkwrap-extractor/cli.js ../../
9085
9186 - name : Publish @ui5/cli
9287 working-directory : packages/cli
You can’t perform that action at this time.
0 commit comments