Switch to "pnpm" from "yarn"
This commit is contained in:
@@ -85,9 +85,9 @@ const updatedContent = outputContent.replace(
|
||||
|
||||
writeFileSync(outputFilePath, updatedContent);
|
||||
|
||||
execSync('yarn tsc', { stdio: 'inherit' });
|
||||
execSync(`yarn oxlint --fix ${OUTPUT_FILE_PATH}`, { stdio: 'inherit' });
|
||||
execSync(`yarn oxfmt --write ${OUTPUT_FILE_PATH}`, { stdio: 'inherit' });
|
||||
execSync('pnpm tsc', { stdio: 'inherit' });
|
||||
execSync(`pnpm oxlint --fix ${OUTPUT_FILE_PATH}`, { stdio: 'inherit' });
|
||||
execSync(`pnpm oxfmt --write ${OUTPUT_FILE_PATH}`, { stdio: 'inherit' });
|
||||
|
||||
console.log('Generated MANGA_TAGS_BY_MANGA_TYPE:');
|
||||
Object.entries(translationsByMangaType).forEach(([mangaType, tags]) => {
|
||||
|
||||
@@ -50,7 +50,7 @@ const execYarnOutdated = ({ asJson = false, stdio }: { asJson?: boolean; stdio?:
|
||||
| string
|
||||
| null => {
|
||||
try {
|
||||
execSync(`yarn outdated ${asJson ? '--json' : ''}`, { stdio: !asJson ? stdio : undefined }).toString();
|
||||
execSync(`pnpm outdated ${asJson ? '--json' : ''}`, { stdio: !asJson ? stdio : undefined }).toString();
|
||||
return null;
|
||||
} catch (e: any) {
|
||||
if (e?.stdout === null) {
|
||||
@@ -119,15 +119,15 @@ const updateDependencies = () => {
|
||||
|
||||
setCaretForDependencies('add', autoUpdatableDependencies);
|
||||
|
||||
execSync('yarn', { stdio: 'inherit' });
|
||||
execSync('pnpm', { stdio: 'inherit' });
|
||||
|
||||
log('syncing package.json with yarn.lock...');
|
||||
|
||||
execSync('yarn syncyarnlock -s', { stdio: 'inherit' });
|
||||
execSync('pnpm up --latest --lockfile-only', { stdio: 'inherit' });
|
||||
|
||||
log('updating yarn.lock after syncing package.json...');
|
||||
|
||||
execSync('yarn', { stdio: 'inherit' });
|
||||
execSync('pnpm', { stdio: 'inherit' });
|
||||
|
||||
log('commiting changes...');
|
||||
|
||||
|
||||
@@ -76,9 +76,9 @@ const generateResources = async () => {
|
||||
updateI18nIndex(resourceNames);
|
||||
updateLinguiConfig(resourceNames);
|
||||
|
||||
execSync('yarn tsc', { stdio: 'inherit' });
|
||||
execSync(`yarn oxlint --fix ${I18N_INDEX_PATH} ${LINGUI_CONFIG_PATH}`, { stdio: 'inherit' });
|
||||
execSync(`yarn oxfmt --write ${I18N_INDEX_PATH} ${LINGUI_CONFIG_PATH}`, { stdio: 'inherit' });
|
||||
execSync('pnpm tsc', { stdio: 'inherit' });
|
||||
execSync(`pnpm oxlint --fix ${I18N_INDEX_PATH} ${LINGUI_CONFIG_PATH}`, { stdio: 'inherit' });
|
||||
execSync(`pnpm oxfmt --write ${I18N_INDEX_PATH} ${LINGUI_CONFIG_PATH}`, { stdio: 'inherit' });
|
||||
|
||||
const hasI18nIndexChanged = execSync('git status --porcelain').toString().includes(I18N_INDEX_PATH);
|
||||
const hasLinguiConfigChanged = execSync('git status --porcelain').toString().includes(LINGUI_CONFIG_PATH);
|
||||
|
||||
Reference in New Issue
Block a user