Skip to content

Commit 0912c44

Browse files
committed
reconfigure tsconfig
1 parent 5df8550 commit 0912c44

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.changeset/fast-papayas-glow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"cloudways-js-client": patch
3+
---
4+
5+
change build process

tsconfig.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@
44
"esModuleInterop": true,
55
"skipLibCheck": true,
66
"target": "es2022",
7-
"verbatimModuleSyntax": true,
87
"allowJs": true,
98
"resolveJsonModule": true,
10-
"moduleDetection": "force",
119
/* Strictness */
1210
"strict": true,
1311
"noUncheckedIndexedAccess": true,
14-
/* If NOT transpiling with TypeScript: */
15-
"moduleResolution": "Bundler",
16-
"module": "ESNext",
12+
/* Module Resolution */
13+
"moduleResolution": "node", // Adjust this to "node"
14+
"module": "commonjs", // And this to "commonjs" if you're targeting a Node environment
1715
"noEmit": true,
18-
/* If your code runs in the DOM: */
16+
/* Include DOM libraries only if your environment has a DOM */
1917
"lib": ["es2022", "dom", "dom.iterable"],
20-
}
21-
}
18+
},
19+
"include": [
20+
"src/**/*" // Adjust to include the directory of your source files
21+
],
22+
"exclude": [
23+
"node_modules",
24+
"dist" // Exclude dist if you don't want TypeScript to type-check files in dist
25+
]
26+
}

0 commit comments

Comments
 (0)