-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to more explicit worker execution
- Loading branch information
Showing
5 changed files
with
75 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import fs from "node:fs/promises"; | ||
import { PATHS } from "../../constants"; | ||
|
||
export async function getAssetIds(): Promise<bcked.asset.Id[]> { | ||
const assetIds = await fs.readdir(PATHS.assets); | ||
return assetIds as bcked.asset.Id[]; | ||
} | ||
|
||
export async function getEntityIds(): Promise<bcked.entity.Id[]> { | ||
const entityIds = await fs.readdir(PATHS.entities); | ||
return entityIds as bcked.entity.Id[]; | ||
} | ||
|
||
export async function getSystemIds(): Promise<bcked.system.Id[]> { | ||
const systemIds = await fs.readdir(PATHS.systems); | ||
return systemIds as bcked.system.Id[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters