Fix missing codegen diff

This commit is contained in:
Ashcon Partovi
2024-05-30 17:07:12 -07:00
parent e0a2b0cf0a
commit 2765542e1e
2 changed files with 9 additions and 2 deletions

View File

@@ -1,8 +1,7 @@
// @ts-nocheck
import path from "path";
import type { Field, ClassDefinition } from "./class-definitions";
import { writeIfNotChanged } from "./helpers";
import { camelCase, pascalCase } from "change-case";
import { writeIfNotChanged, camelCase, pascalCase } from "./helpers";
if (process.env.BUN_SILENT === "1") {
console.log = () => {};

View File

@@ -105,3 +105,11 @@ export function pathToUpperSnakeCase(filepath: string) {
.join("_")
.toUpperCase();
}
export function camelCase(string: string) {
return `${string[0].toLowerCase()}${string.slice(1)}`;
}
export function pascalCase(string: string) {
return `${string[0].toUpperCase()}${string.slice(1)}`;
}