mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
stuff
This commit is contained in:
@@ -80,7 +80,8 @@
|
||||
"Bash(if [ -f \"$file\" ])",
|
||||
"Bash(if ! head -1 \"$file\")",
|
||||
"Bash(for file in fakemui/fakemui/utils/useMediaQuery.js)",
|
||||
"Bash(perl -pi -e:*)"
|
||||
"Bash(perl -pi -e:*)",
|
||||
"Bash(pkill:*)"
|
||||
]
|
||||
},
|
||||
"spinnerTipsEnabled": false
|
||||
|
||||
@@ -135,7 +135,12 @@ export const createInstalledPackageOperations = (adapter: DBALAdapter, tenantId?
|
||||
return deleteInstalledPackage(adapter, id)
|
||||
},
|
||||
list: options => {
|
||||
// For public packages, allow listing packages with tenantId: null
|
||||
const tenantFilter = resolveTenantFilter(tenantId, options?.filter)
|
||||
if (!tenantFilter && !tenantId) {
|
||||
// No configured tenant and no filter provided - allow listing public packages (tenantId: null)
|
||||
return listInstalledPackages(adapter, { ...options, filter: { ...(options?.filter ?? {}), tenantId: null } })
|
||||
}
|
||||
if (!tenantFilter) {
|
||||
throw DBALError.validationError('Tenant ID is required', [{ field: 'tenantId', error: 'tenantId is required' }])
|
||||
}
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
import { join } from 'path'
|
||||
import { join, resolve } from 'path'
|
||||
|
||||
export function getPackagesDir(): string {
|
||||
return join(process.cwd(), 'packages')
|
||||
let cwd = process.cwd()
|
||||
// If running from Next.js context, go up two levels to project root
|
||||
if (cwd.endsWith('frontends/nextjs') || cwd.endsWith('frontends\\nextjs')) {
|
||||
cwd = resolve(cwd, '../..')
|
||||
}
|
||||
return join(cwd, 'packages')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user