assertES5() — drizzle-orm Function Reference
Architecture documentation for the assertES5() function in utils.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD c5d54d05_29f9_7bb7_bca2_3d66be69bd54["assertES5()"] 09e5bcf1_0f03_3dbd_fbdb_762440f28855["utils.ts"] c5d54d05_29f9_7bb7_bca2_3d66be69bd54 -->|defined in| 09e5bcf1_0f03_3dbd_fbdb_762440f28855 54221957_c725_0bfe_4345_4f3837d39296["safeRegister()"] 54221957_c725_0bfe_4345_4f3837d39296 -->|calls| c5d54d05_29f9_7bb7_bca2_3d66be69bd54 b0ef3d06_896b_eefc_c410_dfb419673d70["error()"] c5d54d05_29f9_7bb7_bca2_3d66be69bd54 -->|calls| b0ef3d06_896b_eefc_c410_dfb419673d70 style c5d54d05_29f9_7bb7_bca2_3d66be69bd54 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/cli/commands/utils.ts lines 52–70
const assertES5 = async (unregister: () => void) => {
try {
require('./_es5.ts');
} catch (e: any) {
if ('errors' in e && Array.isArray(e.errors) && e.errors.length > 0) {
const es5Error = (e.errors as any[]).filter((it) => it.text?.includes(`("es5") is not supported yet`)).length > 0;
if (es5Error) {
console.log(
error(
`Please change compilerOptions.target from 'es5' to 'es6' or above in your tsconfig.json`,
),
);
process.exit(1);
}
}
console.error(e);
process.exit(1);
}
};
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does assertES5() do?
assertES5() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/commands/utils.ts.
Where is assertES5() defined?
assertES5() is defined in drizzle-kit/src/cli/commands/utils.ts at line 52.
What does assertES5() call?
assertES5() calls 1 function(s): error.
What calls assertES5()?
assertES5() is called by 1 function(s): safeRegister.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free