Skip to content

Commit

Permalink
fix: ensure asset dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkor committed Sep 16, 2024
1 parent 5414fcc commit a2a1642
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/cli-app/src/lib/stores/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ const storesDirectory = path.join(dir, "assets", "stores")

const loadStores = async () => {
logger.debug(`Loading stores (${storesDirectory})`)
if (!(await fs.exists(storesDirectory))) {
throw new TRPCError({
message: `The stores directory doesn't exist at ${storesDirectory}`,
code: "INTERNAL_SERVER_ERROR",
})
}
await fs.ensureDir(storesDirectory)

//* Get all the stores
const formattedStoresDirectory = storesDirectory.replace(/\\/g, "/")
Expand Down

0 comments on commit a2a1642

Please sign in to comment.