Commit 26236b4b by David Kaltschmidt

fix(renderer): Vendor ansicolor as typescript

Fixes #15635

Importing ansicolor from node_modules or vendored as is failed because
there is no ES5 transpiler configured for ES6 libs.

- remove ansicolor from package.json
- add ansicolor to public/vendor/ansicolor and port to typescript
- adapt all ansicolor imports
- add `public/vendor` as a path to be considered by ts compiler
parent 9383b04e
...@@ -169,7 +169,6 @@ ...@@ -169,7 +169,6 @@
"angular-native-dragdrop": "1.2.2", "angular-native-dragdrop": "1.2.2",
"angular-route": "1.6.6", "angular-route": "1.6.6",
"angular-sanitize": "1.6.6", "angular-sanitize": "1.6.6",
"ansicolor": "1.1.78",
"baron": "^3.0.3", "baron": "^3.0.3",
"brace": "^0.10.0", "brace": "^0.10.0",
"classnames": "^2.2.6", "classnames": "^2.2.6",
......
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import ansicolor from 'ansicolor'; import ansicolor from 'vendor/ansicolor/ansicolor';
interface Style { interface Style {
[key: string]: string; [key: string]: string;
......
import ansicolor from 'ansicolor'; import ansicolor from 'vendor/ansicolor/ansicolor';
import _ from 'lodash'; import _ from 'lodash';
import moment from 'moment'; import moment from 'moment';
......
...@@ -32,5 +32,5 @@ ...@@ -32,5 +32,5 @@
"sass": ["sass"] "sass": ["sass"]
} }
}, },
"include": ["public/app/**/*.ts", "public/app/**/*.tsx", "public/test/**/*.ts"] "include": ["public/app/**/*.ts", "public/app/**/*.tsx", "public/test/**/*.ts", "public/vendor/**/*.ts"]
} }
...@@ -2690,11 +2690,6 @@ ansi-styles@~1.0.0: ...@@ -2690,11 +2690,6 @@ ansi-styles@~1.0.0:
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.0.0.tgz#cb102df1c56f5123eab8b67cd7b98027a0279178" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.0.0.tgz#cb102df1c56f5123eab8b67cd7b98027a0279178"
integrity sha1-yxAt8cVvUSPquLZ817mAJ6AnkXg= integrity sha1-yxAt8cVvUSPquLZ817mAJ6AnkXg=
ansicolor@1.1.78:
version "1.1.78"
resolved "https://registry.yarnpkg.com/ansicolor/-/ansicolor-1.1.78.tgz#4c1f1dbef81ff3e1292e6f95b4bfb8ba51212db9"
integrity sha512-mdNo/iRwUyb4Z0L8AthEV4BZ3TlSWr6YakKtItA48ufGBzYYtTVp+gX6bkweKTfs7wGpUepOz+qHrTPqfBus2Q==
ansicolors@~0.3.2: ansicolors@~0.3.2:
version "0.3.2" version "0.3.2"
resolved "https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.3.2.tgz#665597de86a9ffe3aa9bfbe6cae5c6ea426b4979" resolved "https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.3.2.tgz#665597de86a9ffe3aa9bfbe6cae5c6ea426b4979"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment