c12
c12 copied to clipboard
⚙️ Smart Configuration Loader
### Describe the feature Is there a way to get named exports from a config file or will it just look for `default` (or everything if no-default) based on `interopDefault`...
### Describe the feature As a developer I want to have a possibility to execute scripts before install is called, so I can resolve configuration, workspace links and so on....
### Environment c12@latest ### Reproduction `src/types` https://github.com/unjs/c12/blob/efcfbdd9549dfce6990d659fe0b34df4e6bba135/src/types.ts#L104 ### Describe the bug It is mentioned in the documentation that `configFile` can be `false`, but its type is only `string`. ### Additional...
resolves https://github.com/unjs/c12/issues/234
attempts to resolve https://github.com/unjs/c12/issues/228
### Environment Node v22.5.1 ### Reproduction ```ts const { config } = await loadConfig({ configFile: 'THIS_FILE_DOESNT_EXIST.ts' }) console.log('loaded config: ', config) ``` ### Describe the bug When loading a config,...
### Describe the feature I think it'd be helpful for c12 to have validation support built-in via [Standard Schema](https://standardschema.dev/). Use case: push the parsing as far to the edge of...
### Environment ------------------------------ - Operating System: Linux - Node Version: v20.17.0 - Package Manager: [email protected] ------------------------------ ### Reproduction https://stackblitz.com/github/nuxt-modules/tailwindcss/tree/c12-refactor Run `pnpm test basic` ### Describe the bug Getting an error:...
attempts to resolve #137 file tree example: ``` tailwind.config.js tailwind.theme.config.js tailwind.theme.extend.config.js .config/tailwind.config.js .config/tailwind.js .config/tailwind/theme.js .config/tailwind.theme.js .config/tailwind.theme.config.js .config/tailwind/theme.config.js .config/tailwind/theme/extend.js ```
### Describe the feature Currently, c12 supports loading environment variables from .env files but does not natively support .env files that are encrypted using tools like dotenvx. **Alternatives considered**: *...