Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvanipa committed Oct 31, 2023
1 parent d5e7998 commit 3548bc0
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 11 deletions.
1 change: 0 additions & 1 deletion packages/common/src/foundry/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// import { execa, Options } from "execa";
import execa, { Options } from "execa";
import chalk from "chalk";

Expand Down
1 change: 0 additions & 1 deletion packages/config/src/library/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export function mudCoreConfig(config: MUDCoreUserConfig): MUDCoreConfig {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let configAsAny = config as any;
const context = MUDCoreContext.getContext();
console.log(context);
for (const extender of context.configExtenders) {
configAsAny = extender(configAsAny);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/store-sync/src/createStoreSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
combineLatest,
identity,
} from "rxjs";
import pRetry from "p-retry";
// import pRetry from "p-retry";
import { BlockStorageOperations, blockLogsToStorage } from "./blockLogsToStorage";
import { debug as parentDebug } from "./debug";
import { createIndexerClient } from "./trpc-indexer";
Expand Down
2 changes: 1 addition & 1 deletion packages/store/ts/config/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const PATH_DEFAULTS = {

export const DEFAULTS = {
namespace: "",
enums: {} as Record<string, string[]>,
enums: {} as Record<string, never>,
} as const;

export const TABLE_DEFAULTS = {
Expand Down
2 changes: 0 additions & 2 deletions packages/store/ts/config/storeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,6 @@ function validateStoreConfig(config: z.output<typeof StoreConfigUnrefined>, ctx:
// Global names must be unique
const tableLibraryNames = Object.keys(config.tables);
const staticUserTypeNames = Object.keys(config.enums);
console.log("ENUMS");
console.log(staticUserTypeNames);
const userTypeNames = staticUserTypeNames;
const globalNames = [...tableLibraryNames, ...userTypeNames];
const duplicateGlobalNames = getDuplicates(globalNames);
Expand Down
2 changes: 0 additions & 2 deletions packages/store/ts/register/configExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ extendMUDCoreConfig((config) => {
// This function gets called within mudConfig.
// The call order of config extenders depends on the order of their imports.
// Any config validation and transformation should be placed here.
console.log("EXTENDEDDDDDD");
console.log(config);
try {
return zPluginStoreConfig.parse(config);
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions packages/store/ts/scripts/tablegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import { StoreConfig } from "..";

(async () => {
const config = (await loadConfig()) as StoreConfig;
// const srcDir = await getSrcDirectory();
// await tablegen(config, path.join(srcDir, config.codegenDirectory));
const srcDir = await getSrcDirectory();
await tablegen(config, path.join(srcDir, config.codegenDirectory));
})();
2 changes: 1 addition & 1 deletion packages/store/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* Visit https://aka.ms/tsconfig.json to read more about this file */
"target": "es2021",
"types": ["node"],
"module": "CommonJS",
"module": "esnext",
"moduleResolution": "node",
"declaration": true,
"sourceMap": true,
Expand Down

0 comments on commit 3548bc0

Please sign in to comment.