Skip to content

Commit

Permalink
export LEGACY_ID_MAP
Browse files Browse the repository at this point in the history
  • Loading branch information
rsek committed Sep 28, 2022
1 parent 7c54af2 commit 80f6855
Show file tree
Hide file tree
Showing 15 changed files with 173,473 additions and 172,903 deletions.
1 change: 1 addition & 0 deletions dataforged-tools/build/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export * from "./constants";
export * from "./utils";
export * from "./game_objects";
export { starforged, ironsworn } from "./game-data.js";
export { LEGACY_ID_MAP } from "./legacy-id-map.js";
//# sourceMappingURL=index.d.ts.map
2 changes: 1 addition & 1 deletion dataforged-tools/build/index.d.ts.map

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

3 changes: 2 additions & 1 deletion dataforged-tools/build/index.js

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

2 changes: 1 addition & 1 deletion dataforged-tools/build/index.js.map

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

1 change: 0 additions & 1 deletion dataforged-tools/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export * from "@schema";
// export * from "@builders";
export * from "@constants";
export * from "@utils";
export * from "@game_objects";
Expand Down
4 changes: 3 additions & 1 deletion dist/index-esm.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as SF from "./starforged/dataforged.json";
import * as IS from "./ironsworn/datasworn.json";
import * as legacyIdMap from "./legacy_id_map.json";
// for some reason these complain about ironsworn assets not having the right number of abilities. no Asset constructor throws an error for this on build, the schemas check out, and all IDs are numbered properly, so i don't know what that's about :shrug:
const starforged = SF;
const ironsworn = IS;
export { starforged, ironsworn };
const LEGACY_ID_MAP = legacyIdMap;
export { starforged, ironsworn, LEGACY_ID_MAP };
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
Object.defineProperty(exports, "__esModule", { value: true });
const starforged = require("./starforged/dataforged.json");
const ironsworn = require("./ironsworn/datasworn.json");
module.exports = { starforged, ironsworn };
const LEGACY_ID_MAP = require("./legacy_id_map.json");
module.exports = { starforged, ironsworn, LEGACY_ID_MAP };
75,504 changes: 37,752 additions & 37,752 deletions dist/ironsworn/datasworn.json

Large diffs are not rendered by default.

275 changes: 275 additions & 0 deletions dist/legacy_id_map.json

Large diffs are not rendered by default.

270,286 changes: 135,143 additions & 135,143 deletions dist/starforged/dataforged.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions dist/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1941,6 +1941,12 @@ export declare enum Leadership {
VariedDecentralized = "Varied / decentralized"
}

/**
* Old (v1.x) asset and move IDs, keyed by their v2 ID.
* @public
*/
export declare const LEGACY_ID_MAP: Record<string, string>;

/**
* @public
*/
Expand Down
5 changes: 4 additions & 1 deletion src/index-esm.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import type { Starforged, Ironsworn } from "./types";
import * as SF from "./starforged/dataforged.json";
import * as IS from "./ironsworn/datasworn.json";
import * as legacyIdMap from "./legacy_id_map.json"


// for some reason these complain about ironsworn assets not having the right number of abilities. no Asset constructor throws an error for this on build, the schemas check out, and all IDs are numbered properly, so i don't know what that's about :shrug:

const starforged = SF as unknown as Starforged;

const ironsworn = IS as unknown as Ironsworn;
const LEGACY_ID_MAP = legacyIdMap as Record<string,string>;

export {starforged, ironsworn}
export {starforged, ironsworn, LEGACY_ID_MAP }
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ import type { Starforged, Ironsworn } from "./types/index.js";

const starforged = require("./starforged/dataforged.json") as Starforged;
const ironsworn = require("./ironsworn/datasworn.json") as Ironsworn;
const LEGACY_ID_MAP = require("./legacy_id_map.json") as Record<string,string>;

module.exports = {starforged, ironsworn};
module.exports = {starforged, ironsworn, LEGACY_ID_MAP};
275 changes: 275 additions & 0 deletions src/legacy_id_map.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1941,6 +1941,12 @@ export declare enum Leadership {
VariedDecentralized = "Varied / decentralized"
}

/**
* Old (v1.x) asset and move IDs, keyed by their v2 ID.
* @public
*/
export declare const LEGACY_ID_MAP: Record<string, string>;

/**
* @public
*/
Expand Down

0 comments on commit 80f6855

Please sign in to comment.