@theholocron/cli 5.0.0-alpha.244 → 5.0.0-alpha.246
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +5 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/compose-Cao-W6Mu.mjs +211 -0
- package/dist/index-Cd_9v4b8.d.mts +634 -0
- package/dist/index-DvQb3PcL.d.mts +1636 -0
- package/dist/index.d.mts +3 -633
- package/dist/index.mjs +3 -210
- package/dist/plugin/capabilities.d.mts +1 -1635
- package/dist/presets.d.mts +241 -0
- package/dist/presets.mjs +416 -0
- package/package.json +3 -3
package/dist/cli.mjs
CHANGED
|
@@ -7307,15 +7307,17 @@ function parseTopics(raw) {
|
|
|
7307
7307
|
}
|
|
7308
7308
|
/**
|
|
7309
7309
|
* Generate the content of `holocron.config.ts` for a newly-scaffolded repo.
|
|
7310
|
-
*
|
|
7310
|
+
* Composes the `withNode()` and `withTypecheck()` capabilities from `@theholocron/cli/presets` as the baseline
|
|
7311
7311
|
* and layers in the provider/agent choices made during the wizard.
|
|
7312
7312
|
*/
|
|
7313
7313
|
function generateHolocronConfig(opts) {
|
|
7314
7314
|
const lines = [
|
|
7315
7315
|
`import { defineConfig } from "@theholocron/cli";`,
|
|
7316
|
-
`import { compose,
|
|
7316
|
+
`import { compose, withCapabilities } from "@theholocron/cli/presets";`,
|
|
7317
7317
|
``,
|
|
7318
|
-
`const
|
|
7318
|
+
`const { withNode, withTypecheck } = withCapabilities;`,
|
|
7319
|
+
``,
|
|
7320
|
+
`const preset = compose(withNode(), withTypecheck());`,
|
|
7319
7321
|
`export default defineConfig({`,
|
|
7320
7322
|
`\t...preset,`
|
|
7321
7323
|
];
|