/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v7.4.3
scripts/release.ts
37 строк
969 B
Matt Karl
Chore: Remove Lerna for versioning and publishing (#9125)
09 фев 2023, 17:05
Не верифицирован
09 фев 2023, 17:05
0824e55
Код
Авторство
О чём код?
import path from 'path'; import { bump } from './utils/bump'; import { readJSON } from './utils/json'; import { spawn } from './utils/spawn'; /** * Bump the version of all packages in the monorepo * and their dependencies. Replacement for lerna version --exact --force-publish */ async function main(): Promise<void> { try { const { version } = await readJSON<{version: string}>( path.join(process.cwd(), 'package.json') ); const nextVersion = await bump(version); // Finish up: update lock, commit and tag the release await spawn('npm', ['version', nextVersion, '-m', `v${nextVersion}`]); // For testing purposes if (!process.argv.includes('--no-push')) { await spawn('git', ['push']); await spawn('git', ['push', '--tags']); } } catch (err) { console.error((err as Error).message); process.exit(1); } } main();