Skip to content

Commit 35e1a59

Browse files
wise-king-sullymanKKoukiou
authored andcommitted
fix(tsconfig): Update tsconfig to match files from pf-react
1 parent 2e8e066 commit 35e1a59

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

packages/module/tsconfig.json

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@
66
// "incremental": true, /* Enable incremental compilation */
77
"target": "es2015" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'. */,
88
"module": "es2015" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
9-
// "lib": [], /* Specify library files to be included in the compilation. */
9+
"lib": ["es2015", "dom"] /* Specify library files to be included in the compilation. */,
1010
// "allowJs": true, /* Allow javascript files to be compiled. */
1111
// "checkJs": true, /* Report errors in .js files. */
1212
"jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */,
1313
"declaration": true /* Generates corresponding '.d.ts' file. */,
14-
"declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
15-
"sourceMap": true, /* Generates corresponding '.map' file. */
14+
"declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,
15+
"sourceMap": true /* Generates corresponding '.map' file. */,
1616
// "outFile": "./", /* Concatenate and emit output to single file. */
1717
"outDir": "./dist/esm" /* Redirect output structure to the directory. */,
1818
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
19-
"composite": true, /* Enable project compilation */
20-
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
19+
"composite": true /* Enable project compilation */,
20+
"tsBuildInfoFile": "./dist/esm.tsbuildinfo", /* Specify file to store incremental compilation information */
2121
// "removeComments": true, /* Do not emit comments to output. */
2222
// "noEmit": true, /* Do not emit outputs. */
23-
"importHelpers": true, /* Import emit helpers from 'tslib'. */
23+
"importHelpers": true /* Import emit helpers from 'tslib'. */,
2424
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
25-
"isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
25+
"isolatedModules": true /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */,
2626

2727
/* Strict Type-Checking Options */
2828
"strict": true /* Enable all strict type-checking options. */,
2929
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
30-
"strictNullChecks": false, /* Enable strict null checks. */
30+
"strictNullChecks": false /* Enable strict null checks. */,
3131
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
3232
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
3333
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
@@ -68,15 +68,9 @@
6868
/* Advanced Options */
6969
"skipLibCheck": true /* Skip type checking of declaration files. */,
7070
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
71-
"plugins": [
72-
{ "transform": "transformer-cjs-imports" }
73-
]
71+
"plugins": [{ "transform": "transformer-cjs-imports" }],
72+
"assumeChangesOnlyAffectDirectDependencies": true
7473
},
7574
"include": ["./src/*", "./src/**/*"],
76-
"exclude": [
77-
"**/**.test.tsx",
78-
"**/**.test.ts",
79-
"**/examples/**",
80-
"**/__mocks__/**"
81-
]
75+
"exclude": ["**/**.test.tsx", "**/**.test.ts", "**/examples/**", "**/__mocks__/**"]
8276
}

0 commit comments

Comments
 (0)