dasdatmeespresso

This commit is contained in:
zk
2026-05-16 19:53:23 +00:00
parent 8a125634a8
commit acea12ec8a
73 changed files with 5248 additions and 2090 deletions
@@ -33,7 +33,7 @@ const newGoals: Array<GoalDocument> = [];
function HydrateQuest(raw: RawQuestDocument): QuestDocument {
const questData: QuestDocument["questData"] = [];
const { game, playtype } = raw;
const { game } = raw;
for (const rawQuest of raw.rawQuestData) {
const goals: Array<{ goalID: string; note?: string }> = [];
@@ -45,7 +45,6 @@ function HydrateQuest(raw: RawQuestDocument): QuestDocument {
charts: rawGoal.goal.charts,
criteria: rawGoal.goal.criteria,
game,
playtype,
goalID,
name: rawGoal.goal.name,
} as GoalDocument;
@@ -69,7 +68,6 @@ function HydrateQuest(raw: RawQuestDocument): QuestDocument {
desc: raw.desc,
name: raw.name,
game,
playtype,
// just 20 random bytes. can't think of much more creative at the moment.
questID: CreateQuestID(),
questData,
@@ -190,7 +190,12 @@ function remapChartsBlock(
case "folder":
return {
...charts,
data: resolveFolderGoalRef(charts.data, legacyToSeedFolder, canonicalFolderIds, context),
data: resolveFolderGoalRef(
charts.data,
legacyToSeedFolder,
canonicalFolderIds,
context,
),
};
}
}
@@ -277,14 +282,10 @@ console.log(`goal-id-remap.json: wrote ${translateMap.size} translations`);
const repoRoot = path.resolve(SEEDS_DIR, "..", "..");
const biome = path.join(repoRoot, "node_modules", ".bin", "biome");
const biomeResult = spawnSync(
biome,
["format", "--write", goalsPath, questsPath, remapPath],
{
cwd: repoRoot,
stdio: "inherit",
},
);
const biomeResult = spawnSync(biome, ["format", "--write", goalsPath, questsPath, remapPath], {
cwd: repoRoot,
stdio: "inherit",
});
if (biomeResult.status !== 0) {
throw new Error(`biome format exited ${biomeResult.status}`);