From c406d2768f3555b6e84bfd3e81d21d024da31764 Mon Sep 17 00:00:00 2001 From: LaZzyMan Date: Fri, 20 Mar 2026 11:16:51 +0800 Subject: [PATCH] fix: include bundled skills directory in published package The bundled skills directory (dist/bundled/) was missing from the published npm package because it was not listed in the files array of the generated dist/package.json. copy_bundle_assets.js correctly copies bundled skills to dist/bundled/ during the bundle step, but prepare-package.js omitted 'bundled' from the files whitelist. This caused SkillManager to find an empty bundled skills directory at runtime after installation, since npm excluded it during publish. --- scripts/prepare-package.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/prepare-package.js b/scripts/prepare-package.js index 497fdaff9..02a8fb017 100644 --- a/scripts/prepare-package.js +++ b/scripts/prepare-package.js @@ -150,7 +150,15 @@ const distPackageJson = { bin: { qwen: 'cli.js', }, - files: ['cli.js', 'vendor', '*.sb', 'README.md', 'LICENSE', 'locales'], + files: [ + 'cli.js', + 'vendor', + '*.sb', + 'README.md', + 'LICENSE', + 'locales', + 'bundled', + ], config: rootPackageJson.config, dependencies: {}, optionalDependencies: {