From a9894fd449dbc2275b15e31c2c0492456b72ccdb Mon Sep 17 00:00:00 2001 From: "max.rodionov" Date: Wed, 6 Nov 2019 23:37:23 +0300 Subject: [PATCH] build: add tslib --- README.md | 2 +- package-lock.json | 3 +-- package.json | 3 ++- tsconfig.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a44f30be..47c259ef 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The main purpose of this project is to study web applications development based - [x] Stylelint - [ ] Review tools of [minimizing for production](https://webpack.js.org/plugins/mini-css-extract-plugin/#minimizing-for-production) - Build: - - [ ] add [tslib](https://www.npmjs.com/package/tslib) + - [x] add [tslib](https://www.npmjs.com/package/tslib) - App: - [ ] localization - [ ] form handling(ui/server validation, form state) diff --git a/package-lock.json b/package-lock.json index e2e36f6b..ec53b00f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14563,8 +14563,7 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tsutils": { "version": "3.17.1", diff --git a/package.json b/package.json index fd989fb3..dcaf4efa 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,8 @@ ], "dependencies": { "react": "16.11.0", - "react-dom": "16.11.0" + "react-dom": "16.11.0", + "tslib": "1.10.0" }, "devDependencies": { "@testing-library/react": "9.3.0", diff --git a/tsconfig.json b/tsconfig.json index 27223600..f5550670 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,7 +19,7 @@ // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ // "removeComments": true, /* Do not emit comments to output. */ // "noEmit": true, /* Do not emit outputs. */ - // "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'). */ /* Strict Type-Checking Options */