@playcraft/build 0.1.52 → 0.1.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1069,7 +1069,8 @@ export class PlayableScriptsAdapter {
1069
1069
  if (parts.length >= 3) {
1070
1070
  // dist/<theme>/<channel>/<file>.html
1071
1071
  theme = parts[0];
1072
- channel = parts[1];
1072
+ // 兼容 devkit 的 <主题>_<渠道> 目录,目录渠道优先于文件名。
1073
+ channel = targetChannels.find((ch) => artifactMatchesChannel(parts[1], ch)) ?? parts[1];
1073
1074
  }
1074
1075
  else if (parts.length === 2) {
1075
1076
  // dist/<channel>/<file>.html 或 dist/<theme>/<file>.html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcraft/build",
3
- "version": "0.1.52",
3
+ "version": "0.1.54",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",