mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Add danger rule to check all pnpm-lock.yaml dependencies have integrity
This commit is contained in:
+6
-1
@@ -5,6 +5,7 @@ import { run } from 'endanger';
|
||||
|
||||
import migrateBackboneToRedux from './rules/migrateBackboneToRedux';
|
||||
import packageJsonVersionsShouldBePinned from './rules/packageJsonVersionsShouldBePinned';
|
||||
import pnpmLockDepsShouldHaveIntegrity from './rules/pnpmLockDepsShouldHaveIntegrity';
|
||||
|
||||
function isGitDeletedError(error: unknown) {
|
||||
return (
|
||||
@@ -17,7 +18,11 @@ function isGitDeletedError(error: unknown) {
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
await run(migrateBackboneToRedux(), packageJsonVersionsShouldBePinned());
|
||||
await run(
|
||||
migrateBackboneToRedux(),
|
||||
packageJsonVersionsShouldBePinned(),
|
||||
pnpmLockDepsShouldHaveIntegrity()
|
||||
);
|
||||
} catch (error: unknown) {
|
||||
if (!isGitDeletedError(error)) {
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user