MCPcopy Create free account
hub / github.com/elastic/eui / commitI18nTokensChanges

Function commitI18nTokensChanges

packages/eui/scripts/prerelease.mjs:27–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27const commitI18nTokensChanges = async () => {
28 const gitStatus = await getGitStatus();
29
30 if (
31 isFileModified(gitStatus, 'packages/eui/i18ntokens.json') ||
32 isFileModified(gitStatus, 'packages/eui/i18ntokens_changelog.json')
33 ) {
34 await execPromise('git add ./i18ntokens.json ./i18ntokens_changelog.json');
35 await execPromise('git commit -m "chore(eui): update i18ntokens" --no-verify ./i18ntokens.json ./i18ntokens_changelog.json');
36 console.log('Detected and committed i18ntokens changes');
37 } else {
38 console.log('No i18ntokens changes detected');
39 }
40};
41
42const main = async () => {
43 try {

Callers 1

mainFunction · 0.85

Calls 2

getGitStatusFunction · 0.85
isFileModifiedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…