create-kyro 0.5.2 → 0.5.4

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/index.js CHANGED
@@ -263,7 +263,7 @@ ${globalsConfig}
263
263
  // src/generators/astro.ts
264
264
  function generateAstroConfig(answers) {
265
265
  return `import { defineConfig } from 'astro/config';
266
- import kyro from '@kyro-cms/core';
266
+ import { kyro } from '@kyro-cms/core';
267
267
  import { kyroAdmin } from '@kyro-cms/admin';
268
268
 
269
269
  export default defineConfig({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kyro",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "Interactive scaffolding for Kyro CMS projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,7 +2,7 @@ import type { Answers } from "../prompts.js";
2
2
 
3
3
  export function generateAstroConfig(answers: Answers): string {
4
4
  return `import { defineConfig } from 'astro/config';
5
- import kyro from '@kyro-cms/core';
5
+ import { kyro } from '@kyro-cms/core';
6
6
  import { kyroAdmin } from '@kyro-cms/admin';
7
7
 
8
8
  export default defineConfig({
@@ -114,7 +114,7 @@ describe("generators", () => {
114
114
  describe("generateAstroConfig", () => {
115
115
  it("includes kyro integration from core", () => {
116
116
  const config = generateAstroConfig(baseAnswers);
117
- expect(config).toContain("@kyro-cms/core");
117
+ expect(config).toContain("import { kyro } from '@kyro-cms/core'");
118
118
  expect(config).toContain("kyro(");
119
119
  });
120
120
 
@@ -133,7 +133,7 @@ describe("file generation", () => {
133
133
  describe("astro.config.mjs", () => {
134
134
  it("has valid integration setup", () => {
135
135
  const config = generateAstroConfig(baseAnswers);
136
- expect(config).toContain("kyro(");
136
+ expect(config).toContain("import { kyro } from '@kyro-cms/core'");
137
137
  expect(config).toContain("kyroAdmin(");
138
138
  expect(config).not.toContain("@astrojs/node");
139
139
  expect(config).not.toContain("ssr");