File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,21 @@ jobs:
108
108
run : pnpm build
109
109
# https://github.com/pnpm/pnpm/issues/6166
110
110
- name : Deploy
111
- run : pnpm deploy --config.shamefully-hoist=true --config.hoist=true --config.node-linker=true --config.shared-workspace-lockfile=false --filter="$(jq -r .name package.json)" --prod --no-optional bundle
111
+ run : |
112
+ pnpm deploy --config.shamefully-hoist=true --config.hoist=true --config.node-linker=true --config.shared-workspace-lockfile=false --filter="$(jq -r .name package.json)" --prod --no-optional bundle
113
+ # We need to move the node_modules links from v-next/hardhat/bundle to bundle because
114
+ # https://github.com/pnpm/pnpm/pull/8465 broke modules generation with the set of options we provide
115
+ for old_link in $(find v-next/hardhat/bundle -type l); do
116
+ echo "Processing link $old_link"
117
+ new_link="${old_link#v-next/hardhat/}"
118
+ new_link_dir="$(dirname "$new_link")"
119
+ old_link_target="$(readlink -f "$old_link")"
120
+ mkdir -p "$new_link_dir"
121
+ ln -rs "$old_link_target" "$new_link"
122
+ new_link_target="$(readlink "$new_link")"
123
+ echo "Created link $new_link -> $new_link_target"
124
+ done
125
+ rm -rf v-next
112
126
- uses : actions/upload-artifact@v4
113
127
with :
114
128
name : ${{ matrix.package }}
You can’t perform that action at this time.
0 commit comments