Skip to content

Commit

Permalink
Merge pull request #103 from splitio/update_typescript_config
Browse files Browse the repository at this point in the history
Update TypeScript config as in React SDK
  • Loading branch information
EmilianoSanchez authored Mar 27, 2024
2 parents ae51bd0 + be15db2 commit 3a41daf
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 471 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
node_modules
lib
es
types
coverage
examples
.vscode
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1.11.0 (March 27, 2023)
1.11.0 (April 3, 2024)
- Added `sideEffects: false` property in the package.json file to allow tree shaking.
- Updated Redux-Thunk peer dependency range to include [email protected].
- Updated the build process and added the `tslib` package as an explicit dependency to import TypeScript helpers, thereby avoiding duplicated helper code in the output files.
Expand Down
22 changes: 12 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,22 @@
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "es6", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"module": "es6", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"declaration": false, /* Generates corresponding '.d.ts' file. */
// "jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"declaration": false, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
"sourceMap": false, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "es", /* Redirect output structure to the directory. */
"outDir": "es", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */

// @TODO uncomment the following when migrating to JS-commons and Rollup, to avoid duplicated helpers code in builds.
"importHelpers": true, /* Import emit helpers from 'tslib'. */
"importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

Expand Down Expand Up @@ -62,6 +60,10 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
},
"include": ["src"],
"exclude": ["./src/__tests__"]
"include": [
"src"
],
"exclude": [
"./src/__tests__"
]
}
61 changes: 0 additions & 61 deletions types/actions.d.ts

This file was deleted.

69 changes: 0 additions & 69 deletions types/asyncActions.d.ts

This file was deleted.

23 changes: 0 additions & 23 deletions types/constants.d.ts

This file was deleted.

35 changes: 0 additions & 35 deletions types/helpers.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions types/index.d.ts

This file was deleted.

16 changes: 0 additions & 16 deletions types/react-redux/connectSplit.d.ts

This file was deleted.

40 changes: 0 additions & 40 deletions types/react-redux/connectToggler.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions types/reducer.d.ts

This file was deleted.

21 changes: 0 additions & 21 deletions types/selectors.d.ts

This file was deleted.

Loading

0 comments on commit 3a41daf

Please sign in to comment.