Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion node/src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type {
SQLBatchTuple,
Transaction,
UpdateHookOperation,
} from "./types";
} from "./types.js";

export class NodeDatabase implements DB {
private db: Database.Database;
Expand Down
8 changes: 4 additions & 4 deletions node/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as path from "node:path";
import { NodeDatabase } from "./database";
import type { DB, DBParams, OPSQLiteProxy } from "./types";
import { NodeDatabase } from "./database.js";
import type { DB, DBParams, OPSQLiteProxy } from "./types.js";

export { NodeDatabase as Database } from "./database";
export { NodeDatabase as Database } from "./database.js";
export type {
BatchQueryResult,
ColumnMetadata,
Expand All @@ -16,7 +16,7 @@ export type {
SQLBatchTuple,
Transaction,
UpdateHookOperation,
} from "./types";
} from "./types.js";

class OPSQLiteProxyImpl implements OPSQLiteProxy {
open(options: {
Expand Down
2 changes: 1 addition & 1 deletion node/src/test.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from "node:fs";
import * as path from "node:path";
import * as os from "node:os";
import { isIOSEmbedded, isLibsql, isSQLCipher, open } from "./index";
import { isIOSEmbedded, isLibsql, isSQLCipher, open } from "./index.js";

describe("op-sqlite Node.js tests", () => {
let db: ReturnType<typeof open>;
Expand Down
4 changes: 2 additions & 2 deletions node/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"module": "NodeNext",
"lib": ["ES2020"],
"declaration": true,
"declarationMap": true,
Expand All @@ -12,7 +12,7 @@
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "bundler",
"moduleResolution": "NodeNext",
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"types": ["node", "jest"]
Expand Down
Loading