From ca65067c7a886ede86aadb1d8fadef9d9218f067 Mon Sep 17 00:00:00 2001 From: Alexey Ousov Date: Sat, 18 Mar 2023 01:43:46 +0700 Subject: [PATCH] v1.0.7 --- package.json | 2 +- site/src/scripts/graph/graph-solver.ts | 5 +++-- site/src/scripts/types/javascript-lp-solver.d.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 9891a24..99f8aa9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "daxfb-calculator", - "version": "1.0.6", + "version": "1.0.7", "description": "Calculator/Factory Planner for factory management games", "main": "index.js", "scripts": { diff --git a/site/src/scripts/graph/graph-solver.ts b/site/src/scripts/graph/graph-solver.ts index 3655bd8..90bdb5e 100644 --- a/site/src/scripts/graph/graph-solver.ts +++ b/site/src/scripts/graph/graph-solver.ts @@ -6,8 +6,9 @@ import type {BlueprintItemModel, RecipeIOModel} from '../model/store'; //see https://github.com/ellbur/jsLPSolver //this will perform correct setup on Tableau prototype import '@ellbur/javascript-lp-solver/src/Tableau/index'; -import Model from '@ellbur/javascript-lp-solver/src/model'; -import type {Variable} from '@ellbur/javascript-lp-solver/src/model'; +//upper case letter in Model!!! otherwise unix systems will not build +import Model from '@ellbur/javascript-lp-solver/src/Model'; +import type {Variable} from '@ellbur/javascript-lp-solver/src/Model'; //this uses linear programming simplex solver to solve max output for multiple flows //external library is used for algorithm itself, we just build multiple expressions to solve diff --git a/site/src/scripts/types/javascript-lp-solver.d.ts b/site/src/scripts/types/javascript-lp-solver.d.ts index 37f6cfb..0c7a5a2 100644 --- a/site/src/scripts/types/javascript-lp-solver.d.ts +++ b/site/src/scripts/types/javascript-lp-solver.d.ts @@ -5,7 +5,7 @@ Please don't remove this comment if you use unmodified file //overall javascript-lp-solver d.ts is full of any and other dirty stuff //we import Model alone //it doesn't have ts exports, so we need to make ourselves -declare module '@ellbur/javascript-lp-solver/src/model' { +declare module '@ellbur/javascript-lp-solver/src/Model' { export interface Variable { id: string; cost: number;