load resources from starter kit and introduce srcDir configuration

This commit is contained in:
Harminder Virk
2024-05-21 15:02:53 +05:30
committed by GitHub
parent 73c917fdce
commit 3dbb256ddf
35 changed files with 177 additions and 123 deletions
@@ -11,7 +11,6 @@ import { toCamelCase, upperCaseFirst } from "@medusajs/utils"
export function formatRegistrationName(path: string): string {
const parsed = parse(path)
const parsedDir = parse(parsed.dir)
const rawname = parsed.name
let directoryNamespace = parsedDir.name
if (directoryNamespace.startsWith("__")) {
@@ -90,7 +90,6 @@ export function prepareListQuery<T extends RequestQueryFields, TEntity>(
}
})
const allAllowedFields = new Set(allowedFields) // In case there is no allowedFields, allow all fields
const notAllowedFields: string[] = []
if (allowedFields.length) {