@playcraft/build 0.1.22 → 0.1.24
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 +1 -1
- package/dist/engines/generic-adapter.js +1 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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'
|
|
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'].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);
|