Skip to content

Commit 6ab7df7

Browse files
committed
changed all file types to mjs/mts
1 parent cfa6278 commit 6ab7df7

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,5 @@
3636
},
3737
"dependencies": {
3838
"mongodb": "^6.1.0"
39-
},
40-
"type": "module"
41-
}
39+
}
40+
}

src/index.ts renamed to src/index.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { MongoClient } from "mongodb";
22

3-
import { mappings } from "./config/mapping.js";
4-
import { parseQuery } from "./utils/parser.js";
5-
import { connect } from "./utils/database.js";
6-
import { SqlToNoSqlType } from "./types/index.js";
3+
import { mappings } from "./config/mapping.mjs";
4+
import { parseQuery } from "./utils/parser.mjs";
5+
import { connect } from "./utils/database.mjs";
6+
import { SqlToNoSqlType } from "./types/index.mjs";
77

88
export class SqlToNoSql {
99
client: MongoClient | undefined;
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// select * from users where id = 1;
22

3-
import { ParsedSqlType } from "types/sql";
3+
import { ParsedSqlType } from "types/sql.mjs";
44

55
export const parseQuery = (query: string): ParsedSqlType => {
66
const parsedQuery: ParsedSqlType = {

0 commit comments

Comments
 (0)