diff --git a/src/cli/commands/project/show-project.ts b/src/cli/commands/project/show-project.ts index 8f82a3111..6c5a56ec5 100644 --- a/src/cli/commands/project/show-project.ts +++ b/src/cli/commands/project/show-project.ts @@ -1,6 +1,6 @@ import { Command } from "commander"; import { log } from "@clack/prompts"; -import { readProjectConfig } from "@core/config/project.js"; +import { readProjectConfig } from "@core/project/config.js"; import { runCommand, runTask } from "../../utils/index.js"; async function showProject(): Promise { diff --git a/src/core/config/index.ts b/src/core/config/index.ts deleted file mode 100644 index 78ea40db2..000000000 --- a/src/core/config/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type * from "./baseResource.js"; -export * from "./project.js"; -export * from "./app.js"; diff --git a/src/core/index.ts b/src/core/index.ts index b5f005dfe..b36febdbd 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -1,5 +1,5 @@ export * from "./auth/index.js"; export * from "./resources/index.js"; -export * from "./config/index.js"; +export * from "./project/index.js"; export * from "./utils/index.js"; export * from "./errors.js"; diff --git a/src/core/config/baseResource.ts b/src/core/project/baseResource.ts similarity index 100% rename from src/core/config/baseResource.ts rename to src/core/project/baseResource.ts diff --git a/src/core/config/project.ts b/src/core/project/config.ts similarity index 100% rename from src/core/config/project.ts rename to src/core/project/config.ts diff --git a/src/core/project/index.ts b/src/core/project/index.ts new file mode 100644 index 000000000..05961499b --- /dev/null +++ b/src/core/project/index.ts @@ -0,0 +1,3 @@ +export type * from "./baseResource.js"; +export * from "./config.js"; +export * from "./schema.js"; diff --git a/src/core/config/app.ts b/src/core/project/schema.ts similarity index 100% rename from src/core/config/app.ts rename to src/core/project/schema.ts diff --git a/src/core/resources/entity/resource.ts b/src/core/resources/entity/resource.ts index 80b010f97..f27b0cef5 100644 --- a/src/core/resources/entity/resource.ts +++ b/src/core/resources/entity/resource.ts @@ -1,4 +1,4 @@ -import type { Resource } from "@core/config/baseResource.js"; +import type { Resource } from "@core/project/baseResource.js"; import type { Entity } from "./schema.js"; import { readAllEntities } from "./config.js"; import { pushEntities } from "./api.js"; diff --git a/src/core/resources/function/resource.ts b/src/core/resources/function/resource.ts index 144dcee84..ec0866b40 100644 --- a/src/core/resources/function/resource.ts +++ b/src/core/resources/function/resource.ts @@ -1,4 +1,4 @@ -import type { Resource } from "@core/config/baseResource.js"; +import type { Resource } from "@core/project/baseResource.js"; import type { FunctionConfig } from "./schema.js"; import { readAllFunctions } from "./config.js"; diff --git a/tests/core/project.test.ts b/tests/core/project.test.ts index 58ce55c97..6f3d64a3c 100644 --- a/tests/core/project.test.ts +++ b/tests/core/project.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from "vitest"; -import { readProjectConfig } from "../../src/core/config/project.js"; +import { readProjectConfig } from "../../src/core/project/config.js"; import { resolve } from "path"; const FIXTURES_DIR = resolve(__dirname, "../fixtures");