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.
This commit is contained in:
LaZzyMan 2026-03-20 11:16:51 +08:00
parent 602a5db119
commit c406d2768f

View file

@ -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: {