mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 06:18:03 +03:00
dasdatmeespresso
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user