diff --git a/packages/gi-sdk/package.json b/packages/gi-sdk/package.json index b4202bef..72039d27 100644 --- a/packages/gi-sdk/package.json +++ b/packages/gi-sdk/package.json @@ -39,8 +39,10 @@ }, "devDependencies": { "less": "^4.2.0", + "npm-run-all": "^4.1.5", "react": ">=16.9.0", - "react-dom": ">=16.9.0" + "react-dom": ">=16.9.0", + "rimraf": "^5.0.7" }, "peerDependencies": { "less": "^4.2.0", diff --git a/packages/gi-sdk/src/state/index.ts b/packages/gi-sdk/src/state/index.ts index 77977fb2..f1a7acbe 100644 --- a/packages/gi-sdk/src/state/index.ts +++ b/packages/gi-sdk/src/state/index.ts @@ -1,5 +1,6 @@ import type { GlobalModel } from '../context/types'; import type { Application } from '../spec'; +import type { Dataset } from '../types'; import { DatasetStore } from './dataset'; import { GlobalStore } from './global'; import { GraphStore } from './graph'; @@ -25,7 +26,7 @@ class StateManager { public initState(config: Application) { this.widgetStore.setWidgets(config.spec.widgets); this.graphStore.setGraphOptions(config.spec.graph); - this.datasetStore.setDataset(config.dataset); + this.datasetStore.setDataset(config.dataset as Dataset); } }