chore(deps): refresh workspace dependencies (#43)

* chore(deps): refresh workspace dependencies

* Fix pnpm artifact smoke build approvals
This commit is contained in:
Andrey Avtomonov 2026-05-13 01:15:35 +02:00 committed by GitHub
parent 17a2fee69a
commit 85fc408054
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 1274 additions and 1153 deletions

View file

@ -462,12 +462,13 @@ export function npmSmokePackageJson(layout) {
devDependencies: {
'better-sqlite3': '^12.6.2',
},
pnpm: {
onlyBuiltDependencies: ['better-sqlite3'],
},
};
}
export function npmSmokePnpmWorkspaceYaml() {
return ['packages:', ' - "."', 'allowBuilds:', ' better-sqlite3: true', ''].join('\n');
}
export function npmVerifySource() {
return `
const cli = await import('@kaelio/ktx');
@ -1111,6 +1112,7 @@ async function verifyNpmArtifacts(layout, tmpRoot) {
join(projectDir, 'package.json'),
`${JSON.stringify(npmSmokePackageJson(layout), null, 2)}\n`,
);
await writeFile(join(projectDir, 'pnpm-workspace.yaml'), npmSmokePnpmWorkspaceYaml());
await writeFile(join(projectDir, 'verify-npm.mjs'), npmVerifySource());
await writeFile(join(projectDir, 'verify-installed-cli.mjs'), npmRuntimeSmokeSource());
await writeFile(join(projectDir, 'verify-installed-cli-commands.mjs'), npmCliSmokeSource());
@ -1131,6 +1133,7 @@ async function verifyNpmCliArtifacts(layout, tmpRoot) {
const projectDir = join(tmpRoot, 'npm-cli-clean-install');
await mkdir(projectDir, { recursive: true });
await writeFile(join(projectDir, 'package.json'), `${JSON.stringify(npmSmokePackageJson(layout), null, 2)}\n`);
await writeFile(join(projectDir, 'pnpm-workspace.yaml'), npmSmokePnpmWorkspaceYaml());
await writeFile(join(projectDir, 'verify-installed-cli-commands.mjs'), npmCliSmokeSource());
await runCommand('pnpm', ['install'], { cwd: projectDir });