Skip to content

Commit

Permalink
build: update setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Apr 21, 2021
1 parent 507d778 commit a400d9b
Show file tree
Hide file tree
Showing 6 changed files with 301 additions and 312 deletions.
2 changes: 1 addition & 1 deletion .release-it.json
@@ -1,7 +1,7 @@
{
"hooks": {
"before:init": "yarn clean && yarn test",
"before:release": "yarn build && yarn pack",
"before:release": "yarn clean && yarn build && yarn pack",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
},
"git": {
Expand Down
28 changes: 14 additions & 14 deletions package.json
Expand Up @@ -35,7 +35,7 @@
"src/**/*.ts"
],
"peerDependencies": {
"chart.js": "^3.0.2"
"chart.js": "^3.1.0"
},
"browserslist": [
"Firefox ESR",
Expand All @@ -55,38 +55,38 @@
"@rollup/plugin-typescript": "^8.2.1",
"@types/jest": "^26.0.22",
"@types/jest-image-snapshot": "^4.3.0",
"@types/node": "^14.14.37",
"@types/node": "^14.14.41",
"@types/seedrandom": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^4.20.0",
"@typescript-eslint/parser": "^4.20.0",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"@yarnpkg/pnpify": "^2.4.0",
"canvas": "^2.7.0",
"canvas-5-polyfill": "^0.1.5",
"chart.js": "3.0.0-rc.3",
"eslint": "^7.23.0",
"eslint": "^7.24.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-config-prettier": "^8.1.0",
"eslint-config-prettier": "^8.2.0",
"eslint-config-react-app": "^6.0.0",
"eslint-plugin-flowtype": "^5.4.0",
"eslint-plugin-flowtype": "^5.7.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.23.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"jest": "^26.6.3",
"jest-image-snapshot": "^4.4.1",
"prettier": "^2.2.1",
"release-it": "^14.5.1",
"release-it": "^14.6.1",
"rimraf": "^3.0.2",
"rollup": "^2.44.0",
"rollup": "^2.45.2",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-dts": "^3.0.1",
"rollup-plugin-terser": "^7.0.2",
"seedrandom": "^3.0.5",
"ts-jest": "^26.5.4",
"tslib": "^2.1.0",
"ts-jest": "^26.5.5",
"tslib": "^2.2.0",
"typedoc": "^0.20.35",
"typescript": "^4.2.3"
"typescript": "^4.2.4"
},
"scripts": {
"clean": "rimraf build docs node_modules \"*.tgz\" \"*.tsbuildinfo\"",
Expand Down
2 changes: 1 addition & 1 deletion samples/treelabel.html
Expand Up @@ -21,7 +21,7 @@
</select>
</div>
<script>
Chart.registry.add(ChartDataLabels);
Chart.register(ChartDataLabels);
fetch('./tree.json')
.then((r) => r.json())
.then((nodes) => {
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/TreeController.ts
Expand Up @@ -10,7 +10,7 @@ import {
import { merge } from 'chart.js/helpers';
import { EdgeLine } from '../elements';
import { DendogramController, IDendogramChartControllerDatasetOptions } from './DendogramController';
import { IGraphDataPoint, ITreeNode } from './GraphController';
import type { IGraphDataPoint, ITreeNode } from './GraphController';
import patchController from './patchController';

export class TreeController extends DendogramController {
Expand Down
12 changes: 5 additions & 7 deletions tsconfig.json
@@ -1,13 +1,14 @@
{
"compilerOptions": {
"target": "ES2019",
"target": "ES2018",
"module": "ESNext",
"lib": ["DOM", "ES2020"],
"importHelpers": false,
"declaration": false,
"sourceMap": true,
"strict": true,
"importsNotUsedAsValues": "remove",
"removeComments": true,
"importsNotUsedAsValues": "error",
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"strictBindCallApply": true,
Expand All @@ -33,13 +34,10 @@
"typedocOptions": {
"name": "TSLibrary",
"out": "./docs",
"mode": "library",
"theme": "minimal",
"excludeNotExported": true,
"theme": "default",
"excludeExternals": true,
"excludePrivate": true,
"includeVersion": true,
"hideGenerator": true,
"entryPoint": "\"index\""
"hideGenerator": true
}
}

0 comments on commit a400d9b

Please sign in to comment.