Skip to content

Commit a0873b0

Browse files
committed
build(pnpm-script): only call build:micromamba if env file exists
In build:gen:python.
1 parent 65c231e commit a0873b0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/core/typescript/itk-wasm/src/cli/pnpm-script.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,13 @@ async function pnpmScript(name, extraArgs, options) {
326326
'build:wasi',
327327
'&&',
328328
'pnpm',
329-
'bindgen:python',
330-
'&&',
329+
'bindgen:python'
330+
])
331+
if (environmentFileContents) {
332+
pnpmCommand = pnpmCommand.concat(['&&', 'pnpm', 'build:micromamba'])
333+
}
334+
pnpmCommand = pnpmCommand.concat([
331335
'pnpm',
332-
'build:micromamba',
333336
'&&',
334337
'pnpm',
335338
'build:python:wasi'

0 commit comments

Comments
 (0)