Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix(build): `build -t all` builds every module the config declares

yhhdf4c1aad172c
diff --git a/build-tools/cli.js b/build-tools/cli.js
index 830ffe8ee..d16f588f2 100644
--- a/build-tools/cli.js
+++ b/build-tools/cli.js
@@ -51,8 +51,9 @@ program
}
const isDebug = options.debug && !options.release;
+ // Every module the config declares, rather than a second list of them.
const targets = options.target === 'all'
- ? ['web', 'wechat', 'spine', 'spine21', 'spine38', 'spine41', 'spine43', 'dragonbones', 'physics', 'physics-wechat', 'spine-wechat', 'dragonbones-wechat', 'basis', 'basis-wechat', 'videodec', 'videodec-wechat']
+ ? Object.keys(config.wasm)
: [options.target];
if (options.clean) {