mirror of
https://git.um-react.app/um/um-react.git
synced 2026-11-26 07:06:59 +00:00
chore: bump version to v0.4.7; upgrade deps
This commit is contained in:
1 parent
88cfbcd337
commit
d91e2fffe4
11 files changed
+2273
-2041
No files matched your search
+2
-2
@@ -5,13 +5,13 @@ import url from 'node:url';
|
||||
const projectRoot = url.fileURLToPath(new URL('../', import.meta.url));
|
||||
|
||||
export function command(cmd: string, dir = '') {
|
||||
return cp.execSync(cmd, { cwd: path.join(projectRoot, dir), encoding: 'utf-8' }).trim();
|
||||
return cp.execSync(cmd, { cwd: path.resolve(projectRoot, dir), encoding: 'utf-8' }).trim();
|
||||
}
|
||||
|
||||
export function tryCommand(cmd: string, dir = '', fallback = '') {
|
||||
try {
|
||||
return command(cmd, dir);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return fallback;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user