first commit

This commit is contained in:
2025-10-26 23:10:15 +08:00
commit 8f0345b7be
14961 changed files with 2356381 additions and 0 deletions

18
node_modules/release-it/test/util/sh.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
import { spawnSync } from 'node:child_process';
const getCommandAndArgs = input => {
if (typeof input !== 'string' || !input.trim()) {
throw new Error('Invalid input: expected a non-empty string.');
}
const [command, ...args] = input.trim().split(/\s+/);
return [command, args];
};
const exec = (command, opts = { stdio: 'inherit' }) => {
const [cmd, args] = getCommandAndArgs(command);
return spawnSync(cmd, args, opts);
};
export default { getCommandAndArgs, exec };