UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

1 lines 968 B
{"version":3,"file":"config-artifacts.mjs","names":[],"sources":["../../../src/libs/compile/config-artifacts.ts"],"sourcesContent":["export const configArtifactEntries = {\n\tconfig: \"lucid/config\",\n\tenv: \"lucid/env\",\n\tdb: \"lucid/db\",\n\truntime: \"lucid/runtime\",\n} as const;\n\nexport type ConfigArtifactKey = keyof typeof configArtifactEntries;\n\nexport type PreparedConfigArtifacts = Record<ConfigArtifactKey, string>;\n\n/**\n * Returns import paths for the generated split config modules.\n */\nexport const getConfigArtifactImportPaths = (prefix = \".\") =>\n\tObject.fromEntries(\n\t\tObject.entries(configArtifactEntries).map(([key, entry]) => [\n\t\t\tkey,\n\t\t\t`${prefix}/${entry}.js`,\n\t\t]),\n\t) as Record<ConfigArtifactKey, string>;\n"],"mappings":"AAAA,MAAa,EAAwB,CACpC,OAAQ,eACR,IAAK,YACL,GAAI,WACJ,QAAS,eACV,EASa,GAAgC,EAAS,MACrD,OAAO,YACN,OAAO,QAAQ,CAAqB,CAAC,CAAC,KAAK,CAAC,EAAK,KAAW,CAC3D,EACA,GAAG,EAAO,GAAG,EAAM,IACpB,CAAC,CACF"}