Remove twenty-app.jsonc (#14662)

As title, use package.json instead of twenty-app.jsonc
This commit is contained in:
martmull
2025-09-23 16:54:24 +02:00
committed by GitHub
parent bbc97f4ab3
commit 5105b4284e
12 changed files with 82 additions and 203 deletions
@@ -4,7 +4,8 @@ import inquirer from 'inquirer';
import * as path from 'path';
import {
createAgentManifest,
createManifest,
createBasePackageJson,
createGitignoreContent,
createReadmeContent,
} from '../utils/app-template';
import { writeJsoncFile } from '../utils/jsonc-parser';
@@ -92,12 +93,12 @@ export class AppInitCommand {
const agentsDir = path.join(appDir, 'agents');
await fs.ensureDir(agentsDir);
// Create main manifest with agent references
const manifest = createManifest(appName);
const manifestPath = path.join(appDir, 'twenty-app.jsonc');
await writeJsoncFile(manifestPath, manifest);
// Create main basePackageJson with agent references
const basePackageJson = createBasePackageJson(appName);
const basePackageJsonPath = path.join(appDir, 'package.json');
await writeJsoncFile(basePackageJsonPath, basePackageJson);
// Create agent manifest file
// Create agent basePackageJson file
const agentManifest = createAgentManifest(appName);
const agentFileName = `${appName}-agent`;
const agentPath = path.join(agentsDir, `${agentFileName}.jsonc`);
@@ -106,6 +107,13 @@ export class AppInitCommand {
// Create README
const readmeContent = createReadmeContent(appName, appDir);
await fs.writeFile(path.join(appDir, 'README.md'), readmeContent);
// Create empty yarn.lock
await fs.writeFile(path.join(appDir, 'yarn.lock'), '');
// Create .gitignore
const gitignoreContent = createGitignoreContent();
await fs.writeFile(path.join(appDir, '.gitignore'), gitignoreContent);
}
private logSuccess(appDir: string): void {