Skip to content

Commit 88ed98e

Browse files
committed
refactor(typescript-bindings): only copy compressed wasm binary
Keep the resulting NPM package small.
1 parent 31f6f47 commit 88ed98e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

packages/core/typescript/itk-wasm/src/bindgen/typescript/typescript-bindings.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,6 @@ function typescriptBindings(
113113
} catch (err) {
114114
if (err.code !== 'EEXIST') throw err
115115
}
116-
fs.copyFileSync(
117-
wasmBinaryRelativePath,
118-
path.join(distPipelinesDir, path.basename(wasmBinaryRelativePath))
119-
)
120116
fs.copyFileSync(
121117
`${wasmBinaryRelativePath}.zst`,
122118
path.join(

packages/core/typescript/itk-wasm/src/pipeline/internal/load-emscripten-module-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ZSTDDecoder } from '@thewtex/zstddec'
66
const zstdDecoder = new ZSTDDecoder()
77
await zstdDecoder.init()
88

9-
async function loadEmscriptenModuleNode(
9+
async function loadEmscriptenModuleNode (
1010
modulePath: string
1111
): Promise<EmscriptenModule> {
1212
let modulePrefix = modulePath

0 commit comments

Comments
 (0)