add deployment

This commit is contained in:
Morten Olsen
2025-08-08 13:44:26 +02:00
parent c08402f159
commit c343562ba0
8 changed files with 273 additions and 7 deletions

16
scripts/set-version.mjs Normal file
View File

@@ -0,0 +1,16 @@
import { readFile, writeFile } from 'fs/promises';
import { join } from 'path';
import process from 'process';
import { findWorkspacePackages } from '@pnpm/find-workspace-packages';
const packages = await findWorkspacePackages(process.cwd());
for (const pkg of packages) {
const pkgPath = join(pkg.dir, 'package.json');
const pkgJson = JSON.parse(await readFile(pkgPath, 'utf-8'));
pkgJson.version = process.argv[2];
await writeFile(pkgPath, JSON.stringify(pkgJson, null, 2) + '\n');
}