Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit 75e3fff

Browse files
committed
rename
1 parent 15d8c31 commit 75e3fff

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"packageManager": "pnpm@9.1.0",
55
"type": "module",
66
"types": "types.d.ts",
7-
"main": "dist/libxml.js",
7+
"main": "dist/libxml.cjs",
88
"module": "dist/libxml.mjs",
99
"repository": {
1010
"type": "git",

scripts/wasm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ GITHUB_TOKEN=${GITHUB_TOKEN:-"_DUMMY_"} corepack pnpm install
1616

1717
build() {
1818
local SUFFIX=${1:-".js"}
19-
if [ "${SUFFIX}" = ".js" ]; then
19+
if [ "${SUFFIX}" = ".js" -o "${SUFFIX}" = ".cjs" ]; then
2020
TYPE="cjs"
2121
elif [ "${SUFFIX}" = ".mjs" ]; then
2222
TYPE="esm"
@@ -35,7 +35,7 @@ build() {
3535
cmake --install ${BUILDDIR_TYPE}
3636
}
3737

38-
build .js
38+
build .cjs
3939
build .mjs
4040

4141
mv ${INSTALLPATH}/cjs/* "${INSTALLPATH}/"

0 commit comments

Comments
 (0)