@screenbook/cli 1.7.1 → 1.7.2

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.mjs CHANGED
@@ -51,7 +51,7 @@ const ERRORS = {
51
51
  ROUTES_PATTERN_MISSING: {
52
52
  title: "Routes configuration not found",
53
53
  suggestion: "Add routesPattern (for file-based routing) or routesFile (for config-based routing) to your screenbook.config.ts.",
54
- example: `import { defineConfig } from "@screenbook/core"
54
+ example: `import { defineConfig } from "screenbook"
55
55
 
56
56
  // Option 1: File-based routing (Next.js, Nuxt, etc.)
57
57
  export default defineConfig({
@@ -66,7 +66,7 @@ export default defineConfig({
66
66
  ROUTES_FILE_NOT_FOUND: (filePath) => ({
67
67
  title: `Routes file not found: ${filePath}`,
68
68
  suggestion: "Check the routesFile path in your screenbook.config.ts. The file should export a routes array.",
69
- example: `import { defineConfig } from "@screenbook/core"
69
+ example: `import { defineConfig } from "screenbook"
70
70
 
71
71
  export default defineConfig({
72
72
  routesFile: "src/router/routes.ts", // Make sure this file exists
@@ -80,7 +80,7 @@ export default defineConfig({
80
80
  CONFIG_NOT_FOUND: {
81
81
  title: "Configuration file not found",
82
82
  suggestion: "Run 'screenbook init' to create a screenbook.config.ts file, or create one manually.",
83
- example: `import { defineConfig } from "@screenbook/core"
83
+ example: `import { defineConfig } from "screenbook"
84
84
 
85
85
  export default defineConfig({
86
86
  metaPattern: "src/**/screen.meta.ts",
@@ -107,7 +107,7 @@ export default defineConfig({
107
107
  META_FILE_LOAD_ERROR: (filePath) => ({
108
108
  title: `Failed to load ${filePath}`,
109
109
  suggestion: "Check the file for syntax errors or missing exports. The file should export a 'screen' object.",
110
- example: `import { defineScreen } from "@screenbook/core"
110
+ example: `import { defineScreen } from "screenbook"
111
111
 
112
112
  export const screen = defineScreen({
113
113
  id: "example.screen",
@@ -3921,7 +3921,7 @@ function generateScreenMetaContent(meta, options) {
3921
3921
  const dependsOnComment = dependsOn.length > 0 ? "// Auto-detected API dependencies (add more as needed)" : `// APIs/services this screen depends on (for impact analysis)
3922
3922
  // Example: ["UserAPI.getProfile", "PaymentService.checkout"]`;
3923
3923
  const nextComment = next.length > 0 ? "// Auto-detected navigation targets (add more as needed)" : "// Screen IDs this screen can navigate to";
3924
- return `import { defineScreen } from "@screenbook/core"
3924
+ return `import { defineScreen } from "screenbook"
3925
3925
 
3926
3926
  export const screen = defineScreen({
3927
3927
  id: "${meta.id}",
@@ -4371,7 +4371,7 @@ function isInteractive() {
4371
4371
  //#endregion
4372
4372
  //#region src/commands/init.ts
4373
4373
  function generateConfigTemplate(framework) {
4374
- if (framework) return `import { defineConfig } from "@screenbook/core"
4374
+ if (framework) return `import { defineConfig } from "screenbook"
4375
4375
 
4376
4376
  export default defineConfig({
4377
4377
  // Auto-detected: ${framework.name}
@@ -4380,7 +4380,7 @@ export default defineConfig({
4380
4380
  outDir: ".screenbook",
4381
4381
  })
4382
4382
  `;
4383
- return `import { defineConfig } from "@screenbook/core"
4383
+ return `import { defineConfig } from "screenbook"
4384
4384
 
4385
4385
  export default defineConfig({
4386
4386
  // Glob pattern for screen metadata files