diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index 8082d3f0a0..fc285aebd7 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -2,17 +2,17 @@ process.env.DISABLE_PINO_LOGGER = "1" import "./prebuilds" import "./environment" -import { env } from "@budibase/backend-core" import { getCommands } from "./options" import { Command } from "commander" import { getHelpDescription } from "./utils" +import { version } from "../package.json" // add hosting config async function init() { const program = new Command() .addHelpCommand("help", getHelpDescription("Help with Budibase commands.")) .helpOption(false) - .version(env.VERSION) + .version(version) // add commands for (let command of getCommands()) { command.configure(program) diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index 0fa0bd8f5a..ab306debca 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -5,6 +5,7 @@ "declaration": true, "sourceMap": true, "baseUrl": ".", + "resolveJsonModule": true, "paths": { "@budibase/types": ["../types/src"], "@budibase/backend-core": ["../backend-core/src"], @@ -16,6 +17,6 @@ "swc": true }, "references": [{ "path": "../types" }, { "path": "../backend-core" }], - "include": ["src/**/*"], + "include": ["src/**/*", "package.json"], "exclude": ["node_modules", "dist"] }