Skip to content

Commit

Permalink
build: fix out-of-box problems (nornagon#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 authored May 2, 2023
1 parent def9f7b commit 628668b
Show file tree
Hide file tree
Showing 6 changed files with 1,758 additions and 1,500 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"node-fetch": "^2.6.1",
"prettier": "^2.3.2",
"prettier-plugin-svelte": "^2.4.0",
"svelte": "^3.53.0",
"svelte": "^3.58.0",
"svelte-check": "^2.2.7",
"svelte-preprocess": "^4.9.8",
"ts-json-schema-generator": "^1.3.0-next.3",
Expand All @@ -52,6 +52,7 @@
"vite": "^4.2.1",
"vite-plugin-environment": "^1.1.3",
"vite-plugin-pwa": "^0.14.4",
"vitest": "^0.29.7"
"vitest": "^0.29.7",
"workbox-window": "^6.5.4"
}
}
2 changes: 1 addition & 1 deletion src/types/item/ArmorInfo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ const coveredPartGroups = [...grouped.values()].map((bp_ids) => {
const cpGroupHeading = (cpGroup: string[]) => {
return coverageLabel(cpGroup).join(", ");
};
const encumbrance = (cp: typeof coveredPartGroups[0]) => {
const encumbrance = (cp: (typeof coveredPartGroups)[0]) => {
const [encumbMin, encumbMax] =
typeof cp.apd.encumbrance === "number"
? [cp.apd.encumbrance, cp.apd.encumbrance]
Expand Down
2 changes: 1 addition & 1 deletion src/types/item/OvermapAppearance.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let minX = Infinity,
minY = Infinity;
let maxX = -Infinity,
maxY = -Infinity;
const overmapsByPoint = new Map<string, typeof overmaps[0]>();
const overmapsByPoint = new Map<string, (typeof overmaps)[0]>();
for (const om of overmaps) {
const [x, y, z] = om.point;
if (z !== 0) continue;
Expand Down
2 changes: 1 addition & 1 deletion src/types/item/SpawnedIn.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function omsName(oms: OvermapSpecial): string {
minY = Infinity;
let maxX = -Infinity,
maxY = -Infinity;
const grid = new Map<string, typeof ground_level_omts[0]>();
const grid = new Map<string, (typeof ground_level_omts)[0]>();
for (const omt of ground_level_omts) {
const [x, y] = omt.point;
if (
Expand Down
2 changes: 1 addition & 1 deletion src/types/item/spawnLocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function overmapAppearance(
minY = Infinity;
let maxX = -Infinity,
maxY = -Infinity;
const overmapsByPoint = new Map<string, typeof overmaps[0]>();
const overmapsByPoint = new Map<string, (typeof overmaps)[0]>();
for (const om of overmaps) {
const omt_id = om.overmap.replace(/_(north|south|east|west)$/, "");
if (!data.byIdMaybe("overmap_terrain", omt_id)) continue;
Expand Down
Loading

0 comments on commit 628668b

Please sign in to comment.