Skip to content

Commit 2d5cef4

Browse files
committed
build: fix WASM release build
Signed-off-by: Dmitry Dygalo <[email protected]>
1 parent 7850799 commit 2d5cef4

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

.github/workflows/javascript-release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ jobs:
212212
uses: actions/upload-artifact@v4
213213
with:
214214
name: wasm32
215-
path: bindings/javascript/wasm/dist/*.wasm
215+
path: bindings/javascript/wasm/
216216
if-no-files-found: error
217217

218218
release:
@@ -256,7 +256,7 @@ jobs:
256256
- run: mv -f ./artifacts ./bindings/javascript
257257

258258
- name: Move Wasm artifacts
259-
run: mv -f ./bindings/javascript/artifacts/wasm32/*.wasm ./bindings/javascript/wasm
259+
run: mv -f ./bindings/javascript/artifacts/wasm32/ ./bindings/javascript/wasm-dist
260260

261261
- name: Move Node.js artifacts
262262
run: yarn artifacts
@@ -266,7 +266,7 @@ jobs:
266266
run: |
267267
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/.npmrc
268268
npm publish --access public --provenance
269-
cd wasm
269+
cd wasm-dist
270270
npm publish --access public
271271
env:
272272
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

bindings/javascript/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- Update `html5ever` to `0.27`.
88

9+
### Fixed
10+
11+
- WASM package build. [#341](https://github.com/Stranger6667/css-inline/issues/341)
12+
913
## [0.13.1] - 2024-03-12
1014

1115
### Added

bindings/javascript/wasm/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,11 @@ function __wbg_get_imports() {
261261
const ret = getObject(arg0) === void 0;
262262
return ret;
263263
};
264+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
265+
const v = getObject(arg0);
266+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
267+
return ret;
268+
};
264269
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
265270
const obj = getObject(arg1);
266271
const ret = typeof obj === "string" ? obj : void 0;
@@ -269,11 +274,6 @@ function __wbg_get_imports() {
269274
getInt32Memory0()[arg0 / 4 + 1] = len1;
270275
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
271276
};
272-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
273-
const v = getObject(arg0);
274-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
275-
return ret;
276-
};
277277
imports.wbg.__wbindgen_is_object = function(arg0) {
278278
const val = getObject(arg0);
279279
const ret = typeof val === "object" && val !== null;

bindings/javascript/wasm/index.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/javascript/wasm/index.mjs

+5-5
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ function __wbg_get_imports() {
233233
const ret = getObject(arg0) === void 0;
234234
return ret;
235235
};
236+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
237+
const v = getObject(arg0);
238+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
239+
return ret;
240+
};
236241
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
237242
const obj = getObject(arg1);
238243
const ret = typeof obj === "string" ? obj : void 0;
@@ -241,11 +246,6 @@ function __wbg_get_imports() {
241246
getInt32Memory0()[arg0 / 4 + 1] = len1;
242247
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
243248
};
244-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
245-
const v = getObject(arg0);
246-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
247-
return ret;
248-
};
249249
imports.wbg.__wbindgen_is_object = function(arg0) {
250250
const val = getObject(arg0);
251251
const ret = typeof val === "object" && val !== null;
-139 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)