forked from decentralized-identity/dwn-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.cjs.json
30 lines (30 loc) · 942 Bytes
/
tsconfig.cjs.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"compilerOptions": {
"lib": [
"DOM",
"ES5"
],
"allowJs": true,
"target": "ES5",
"module": "CommonJS", // Required for enabling JavaScript import assertion support
"declaration": true,
"declarationMap": true,
"outDir": "dist/cjs",
"sourceMap": true,
// `NodeNext` will throw compilation errors if relative import paths are missing file extension
// reference: https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#ecmascript-module-support-in-node-js
"moduleResolution": "NodeNext",
// allows us to import json files
"resolveJsonModule": true,
// required otherwise `ms` lib doesn't import
"esModuleInterop": true,
"downlevelIteration": true,
},
"include": [
"./src/index.ts"
],
"exclude": [
"node_modules",
"dist"
]
}