Skip to content

Commit 7784cae

Browse files
committed
fix: tsconfig fixed
1 parent fccaec9 commit 7784cae

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "run-p build:* && vite build",
99
"preview": "run-s build && vite preview",
1010
"deploy": "run-s build && gsutil -m rsync -drc ./dist/ gs://storage.ubidev.net/marker-api-playground/",
11-
"test": "mocha"
11+
"test": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha"
1212
},
1313
"keywords": [],
1414
"directories": {

tsconfig.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
{
22
"include": ["./types/**/*", "./src/**/*", "./test/**/*", "./examples/**/*"],
33
"compilerOptions": {
4-
"module": "CommonJS",
5-
"target": "ES2022",
4+
"module": "ES2020",
5+
"target": "ES2020",
66
"moduleResolution": "node",
7-
"jsx": "preserve",
87
"baseUrl": "./",
98
"typeRoots": ["./types", "./node_modules/@types"],
10-
"allowSyntheticDefaultImports": true,
119
"importsNotUsedAsValues": "error",
1210
"isolatedModules": true,
1311
"noEmit": true,
1412
"esModuleInterop": true,
1513
"strict": true,
1614
"skipLibCheck": true,
1715
"forceConsistentCasingInFileNames": true,
18-
"resolveJsonModule": true,
19-
"useDefineForClassFields": false,
20-
"experimentalDecorators": true,
21-
"emitDecoratorMetadata": false,
2216
"stripInternal": true
2317
},
2418
"ts-node": {

0 commit comments

Comments
 (0)