Skip to content

Commit

Permalink
Update package to run with Node 10 on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eyas committed May 18, 2020
1 parent 6bfff42 commit 265e5e5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 25 deletions.
45 changes: 22 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"bin": "./dist/gen/cli/cli.js",
"devDependencies": {
"@types/argparse": "^1.0.38",
"@types/array.prototype.flatmap": "^1.2.1",
"@types/diff": "^4.0.2",
"@types/jest": "^25.2.2",
"@types/node": "^14.0.1",
Expand All @@ -39,6 +40,7 @@
},
"dependencies": {
"argparse": "^1.0.10",
"array.prototype.flatmap": "^1.2.3",
"htmlparser2": "^4.1.0",
"rxjs": "^6.5.5"
},
Expand Down Expand Up @@ -87,8 +89,8 @@
"license": "Apache-2.0",
"scripts": {
"clean": "del-cli built dist/gen dist/schema/**/* !dist/schema/package.json !dist/schema/README.md",
"lint": "eslint */**/*.{js,ts} && prettier --check src/ && prettier --check test/",
"fix": "eslint --fix */**/*.{js,ts} && prettier --write src/ && prettier --write test/",
"lint": "eslint src/**/*.ts test/**/*.ts *.js && prettier --check src/ && prettier --check test/",
"fix": "eslint --fix src/**/*.ts test/**/*.ts *.js && prettier --write src/ && prettier --write test/",
"test": "npm run lint && jest --coverage",
"coverage_on_travis": "cat ./coverage/lcov.info | coveralls",
"build": "tsc -b",
Expand Down
3 changes: 3 additions & 0 deletions src/ts/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ import {toClassName} from './util/names';
import {assert} from '../util/assert';
import {IdReferenceName} from './helper_types';

import {shim as shimFlatMap} from 'array.prototype.flatmap';
shimFlatMap();

/** Maps fully qualified IDs of each Class to the class itself. */
export type ClassMap = Map<string, Class>;

Expand Down

0 comments on commit 265e5e5

Please sign in to comment.