@playcraft/build 0.1.21 → 0.1.22

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.
@@ -76,6 +76,9 @@ 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' },
79
82
  ];
80
83
  for (const { file, manager } of lockFiles) {
81
84
  try {
@@ -163,7 +166,7 @@ export class GenericAdapter {
163
166
  */
164
167
  async runNpmBuild(packageManager, script) {
165
168
  const cmd = packageManager === 'npm' ? 'npm' : packageManager;
166
- const args = packageManager === 'npm' ? ['run', script] : [script];
169
+ const args = packageManager === 'npm' || packageManager === 'bun' ? ['run', script] : [script];
167
170
  console.log(`[GenericAdapter] 运行: ${cmd} ${args.join(' ')}`);
168
171
  await this.runCommandWithTimeout(cmd, args, {
169
172
  cwd: this.projectDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcraft/build",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",