MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / exitHandler

Function exitHandler

packages/cli-v3/src/commands/update.ts:167–171  ·  view source on GitHub ↗
(sig: any)

Source from the content-addressed store, hash-verified

165 await writeJSONFile(packageJsonBackupPath, readonlyPackageJson, true);
166
167 const exitHandler = async (sig: any) => {
168 log.warn(
169 `You may have to manually roll back any package.json changes. Backup written to ${packageJsonBackupPath}`
170 );
171 };
172
173 // Add exit handler to warn about manual rollback of package.json
174 // Automatically rolling back can end up overwriting with an empty file instead

Callers

nothing calls this directly

Calls 1

warnMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…