b55705e9b4
I was surprised when I tried to spread a `Set` in TypeScript and the browser complained about `Set.slice()` not being defined. This is because TypeScript does not automatically enable support for iterators when targeting earlier ES versions, like we do in the browser, unless you use the `"downlevelIteration": true` compiler option. This injects some helpers into the necessary files for reading/spreading iterators, which can be stuffed behind an import statement with using the `"importHelpers": true` compiler option and include `tslib` in our dependencies. This is already a dependency of several of our packages, so it shouldn't cause any additional modules.
26 lines
579 B
JSON
26 lines
579 B
JSON
{
|
|
"name": "@kbn/dev-utils",
|
|
"main": "./target/index.js",
|
|
"types": "./index.d.ts",
|
|
"version": "1.0.0",
|
|
"license": "Apache-2.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "babel src --out-dir target",
|
|
"kbn:bootstrap": "yarn build"
|
|
},
|
|
"dependencies": {
|
|
"chalk": "^2.4.1",
|
|
"execa": "^0.10.0",
|
|
"moment": "^2.20.1",
|
|
"rxjs": "^6.2.1",
|
|
"tree-kill": "^1.2.0",
|
|
"tslib": "^1.9.3"
|
|
},
|
|
"devDependencies": {
|
|
"@kbn/babel-preset": "link:../kbn-babel-preset",
|
|
"babel-cli": "^6.26.0",
|
|
"chance": "1.0.6",
|
|
"expect.js": "0.3.1"
|
|
}
|
|
}
|