Skip to content

Commit 164b179

Browse files
committed
Replace import path for release
1 parent 1083827 commit 164b179

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
build-windows:
99
strategy:
1010
matrix:
11-
os: [windows-latest, windows-arm64]
11+
os: [windows-arm64, windows-latest]
1212
runs-on: ${{ matrix.os }}
1313
steps:
1414
- uses: ilammy/msvc-dev-cmd@v1
@@ -25,7 +25,7 @@ jobs:
2525
git status
2626
git config --global user.email "[email protected]"
2727
git config --global user.name "Alex Hultman"
28-
git commit -a -m "[GitHub Actions] Updated windows-latest binaries"
28+
git commit -a -m "[GitHub Actions] Updated ${{ matrix.os }} binaries"
2929
git push "https://unetworkingab:${{ secrets.SECRET }}@github.com/${{ github.repository }}" binaries
3030
git checkout master -- tests/smoke.js
3131
npm install ws

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
6969
sed -i "s|\"optionalDependencies\": {}|\"optionalDependencies\": {\n $deps\n}|" package.json
7070
sed -i "s|\"version\": \"[^\"]*\"|\"version\": \"${version}\"|g" package.json
71+
sed -i "s|./uws_|@uws/uws_|g" uws.js
7172
7273
git checkout --detach
7374
git add package.json

src/uws.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
module.exports = (() => {
1919
try {
20-
return require('@uws/uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules);
20+
return require('./uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules);
2121
} catch (e) {
2222
throw new Error('This version of uWS.js (v20.51.0) supports only Node.js versions 18, 20, 22 and 23 on (glibc) Linux, macOS and Windows, on Tier 1 platforms (https://github.com/nodejs/node/blob/master/BUILDING.md#platform-list).\n\n' + e.toString());
2323
}

0 commit comments

Comments
 (0)