@playcraft/build 0.1.28 → 0.1.29

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.
package/README.md CHANGED
@@ -209,4 +209,4 @@ console.log(adapter.getDefaultFormat()); // "html"
209
209
 
210
210
  - `@playcraft/cli`:CLI 工具
211
211
  - `@playcraft/worker`:队列消费与异步构建
212
- - `@playcraft/backend-business-server`:类型定义用于参数校验
212
+ - `@playcraft/backend`:类型定义用于参数校验
@@ -76,9 +76,6 @@ export class GenericAdapter {
76
76
  { file: 'pnpm-lock.yaml', manager: 'pnpm' },
77
77
  { file: 'yarn.lock', manager: 'yarn' },
78
78
  { file: 'package-lock.json', manager: 'npm' },
79
- { file: 'npm-shrinkwrap.json', manager: 'npm' },
80
- { file: 'bun.lock', manager: 'bun' },
81
- { file: 'bun.lockb', manager: 'bun' },
82
79
  ];
83
80
  for (const { file, manager } of lockFiles) {
84
81
  try {
@@ -166,7 +163,7 @@ export class GenericAdapter {
166
163
  */
167
164
  async runNpmBuild(packageManager, script) {
168
165
  const cmd = packageManager === 'npm' ? 'npm' : packageManager;
169
- const args = packageManager === 'npm' || packageManager === 'bun' ? ['run', script] : [script];
166
+ const args = packageManager === 'npm' ? ['run', script] : [script];
170
167
  console.log(`[GenericAdapter] 运行: ${cmd} ${args.join(' ')}`);
171
168
  await this.runCommandWithTimeout(cmd, args, {
172
169
  cwd: this.projectDir,
@@ -285,12 +282,6 @@ export class GenericAdapter {
285
282
  const entries = await fs.readdir(src, { withFileTypes: true });
286
283
  for (const entry of entries) {
287
284
  const srcPath = path.join(src, entry.name);
288
- if (entry.name === '.playcraft.json')
289
- continue;
290
- if (path.basename(src) === '.playcraft' && ['skills', 'skill-artifacts', 'video-replication', 'workspace-context.json'].includes(entry.name))
291
- continue;
292
- if (entry.name === 'user_uploads' && path.basename(src) === '.tmp')
293
- continue;
294
285
  const destPath = path.join(dest, entry.name);
295
286
  // 安全检查:确保目标路径在输出目录内
296
287
  const resolvedDest = path.resolve(destPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcraft/build",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",