diff --git a/README.md b/README.md index db4694a..6830490 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ my-addon/ │ ├── behavior_pack/ │ └── resource_pack/ ├── pack/ # .mcaddon output -├── quick-start.json # Project configuration +├── mcbe.config.json # Project configuration ├── package.json └── tsconfig.json # Only for TypeScript projects ``` diff --git a/src/commands/build.ts b/src/commands/build.ts index 829a61b..ac434e3 100644 --- a/src/commands/build.ts +++ b/src/commands/build.ts @@ -12,7 +12,7 @@ const TS_FILTER = (src: string) => !src.endsWith('.ts') export async function buildCommand(options: { package?: boolean }) { const projectDir = getProjectDir() if (!projectDir) { - console.error(pc.red(' ✗ No quick-start.json found')) + console.error(pc.red(' ✗ No mcbe.config.json found')) process.exit(1) } diff --git a/src/commands/dev.ts b/src/commands/dev.ts index 705e122..829cd7e 100644 --- a/src/commands/dev.ts +++ b/src/commands/dev.ts @@ -24,7 +24,7 @@ function syncDir(src: string, dest: string, label: string) { export async function devCommand(options: DevOptions = {}) { const projectDir = getProjectDir() if (!projectDir) { - console.error(pc.red(' ✗ No quick-start.json found')) + console.error(pc.red(' ✗ No mcbe.config.json found')) process.exit(1) } diff --git a/src/commands/manifest.ts b/src/commands/manifest.ts index 2351f88..30ab196 100644 --- a/src/commands/manifest.ts +++ b/src/commands/manifest.ts @@ -6,7 +6,7 @@ import { getProjectConfig, getProjectDir } from '../core/project.js' export async function manifestCommand() { const projectDir = getProjectDir() if (!projectDir) { - console.error(pc.red(' ✗ No quick-start.json found')) + console.error(pc.red(' ✗ No mcbe.config.json found')) process.exit(1) } diff --git a/src/commands/sync.ts b/src/commands/sync.ts index 605bba6..7b6ab36 100644 --- a/src/commands/sync.ts +++ b/src/commands/sync.ts @@ -7,7 +7,7 @@ import { getMcPaths, getMcProjectDir } from '../utils/mcpath.js' export async function syncCommand() { const projectDir = getProjectDir() if (!projectDir) { - console.error(pc.red(' ✗ No quick-start.json found')) + console.error(pc.red(' ✗ No mcbe.config.json found')) process.exit(1) } diff --git a/src/core/project.ts b/src/core/project.ts index f1bc1ee..422d9ed 100644 --- a/src/core/project.ts +++ b/src/core/project.ts @@ -2,7 +2,7 @@ import type { QuickStartConfig } from '../types.js' import { existsSync, readFileSync, writeFileSync } from 'node:fs' import { join } from 'node:path' -const CONFIG_FILE = 'quick-start.json' +const CONFIG_FILE = 'mcbe.config.json' export function getProjectDir(): string | null { let dir = process.cwd() @@ -16,7 +16,7 @@ export function getProjectDir(): string | null { export function getProjectConfig(projectDir?: string): QuickStartConfig { const dir = projectDir || getProjectDir() - if (!dir) { throw new Error('No quick-start.json found. Are you in a project directory?') } + if (!dir) { throw new Error('No mcbe.config.json found. Are you in a project directory?') } const configPath = join(dir, CONFIG_FILE) if (!existsSync(configPath)) { throw new Error(`Config file not found: ${configPath}`) } diff --git a/src/utils/mcpath.ts b/src/utils/mcpath.ts index 5e5f104..347d86b 100644 --- a/src/utils/mcpath.ts +++ b/src/utils/mcpath.ts @@ -48,7 +48,7 @@ export function getMcPaths(projectDir?: string): McPaths | null { } if (projectDir) { - const configPath = join(projectDir, 'quick-start.json') + const configPath = join(projectDir, 'mcbe.config.json') if (existsSync(configPath)) { try { const config: QuickStartConfig = JSON.parse(readFileSync(configPath, 'utf-8'))