setup dual publish for commonjs/esm modules and properly route browser/node usages to the correct napi binary entrypoint

This commit is contained in:
Nikita Sivukhin
2025-08-07 15:46:30 +04:00
parent 1a2a1a9ca4
commit d1cd294e94
14 changed files with 177 additions and 94 deletions

View File

@@ -0,0 +1,13 @@
export class SqliteError extends Error {
name: string;
code: string;
rawCode: string;
constructor(message, code, rawCode) {
super(message);
this.name = 'SqliteError';
this.code = code;
this.rawCode = rawCode;
(Error as any).captureStackTrace(this, SqliteError);
}
}