mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-16 08:25:14 +02:00
chore(deps): refresh workspace dependencies (#43)
* chore(deps): refresh workspace dependencies * Fix pnpm artifact smoke build approvals
This commit is contained in:
parent
17a2fee69a
commit
85fc408054
19 changed files with 1274 additions and 1153 deletions
|
|
@ -1,19 +1,34 @@
|
|||
import { type SimpleGit, simpleGit } from 'simple-git';
|
||||
|
||||
const PRE_COMMIT_GIT_ENV = [
|
||||
const SANITIZED_GIT_ENV_KEYS = [
|
||||
'EDITOR',
|
||||
'GIT_ALTERNATE_OBJECT_DIRECTORIES',
|
||||
'GIT_CONFIG',
|
||||
'GIT_CONFIG_COUNT',
|
||||
'GIT_CONFIG_GLOBAL',
|
||||
'GIT_CONFIG_PARAMETERS',
|
||||
'GIT_CONFIG_SYSTEM',
|
||||
'GIT_DIR',
|
||||
'GIT_EDITOR',
|
||||
'GIT_EXEC_PATH',
|
||||
'GIT_INDEX_FILE',
|
||||
'GIT_OBJECT_DIRECTORY',
|
||||
'GIT_PAGER',
|
||||
'GIT_PREFIX',
|
||||
'GIT_QUARANTINE_PATH',
|
||||
'GIT_SEQUENCE_EDITOR',
|
||||
'GIT_SSH',
|
||||
'GIT_SSH_COMMAND',
|
||||
'GIT_TEMPLATE_DIR',
|
||||
'GIT_WORK_TREE',
|
||||
'PAGER',
|
||||
'SSH_ASKPASS',
|
||||
'VISUAL',
|
||||
] as const;
|
||||
|
||||
export function createSimpleGit(baseDir?: string): SimpleGit {
|
||||
const env = { ...process.env };
|
||||
for (const key of PRE_COMMIT_GIT_ENV) {
|
||||
for (const key of SANITIZED_GIT_ENV_KEYS) {
|
||||
delete env[key];
|
||||
}
|
||||
return simpleGit(baseDir).env(env);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue