Skip to content

Commit 7dfa86c

Browse files
committed
feat: removed esbuild
1 parent 602646a commit 7dfa86c

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"registry": "https://registry.npmjs.org"
1010
},
1111
"scripts": {
12-
"build": "esbuild src/index.ts --sourcemap=external --bundle --platform=node --outdir=dist --format=cjs",
12+
"build": "tsc",
1313
"test": "tap",
1414
"coverage": "tap --coverage-report=html",
1515
"prepare": "$CI || husky"
@@ -48,7 +48,6 @@
4848
"@types/tap": "^15.0.11",
4949
"@typescript-eslint/eslint-plugin": "^7.6.0",
5050
"@typescript-eslint/parser": "^7.7.0",
51-
"esbuild": "^0.20.2",
5251
"eslint": "^8.57.0",
5352
"eslint-config-prettier": "^9.1.0",
5453
"eslint-plugin-node": "^11.1.0",

tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES6",
4+
"esModuleInterop": true,
5+
"module": "commonjs",
6+
"outDir": "dist",
7+
"declaration": true,
8+
"declarationDir": "types/"
9+
},
10+
"exclude": ["test/**"],
11+
"include": ["src"]
12+
}

types/allowed.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export declare const ALLOWED_OPERATORS: string[];

types/index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export declare function validateQuery(
2+
obj: Record<string, unknown>,
3+
maxDepth?: number
4+
): {
5+
isValidQuery: boolean;
6+
invalidFields: string[];
7+
};
8+
export default validateQuery;

0 commit comments

Comments
 (0)