mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Fix missing codegen diff
This commit is contained in:
@@ -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 = () => {};
|
||||
|
||||
@@ -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)}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user