import { publisher, name, version } from "../package.json"

// These ENV variables can be defined by ESBuild when building the extension
// in order to override the values in package.json. This allows us to build
// different extension variants with the same package.json file.
// The build process still needs to emit a modified package.json for consumption
// by VSCode, but that build artifact is not used during the transpile step of
// the build, so we still need this override mechanism.
export const Package = {
	publisher,
	name: process.env.COSTRICT_PKG_NAME || name,
	commandIDPrefix: "costrict",
	version: process.env.COSTRICT_PKG_VERSION || version,
	outputChannel: process.env.COSTRICT_PKG_OUTPUT_CHANNEL || "CoStrict",
	sha: process.env.COSTRICT_PKG_SHA,
	buildTime: process.env.COSTRICT_PKG_BUILD_TIME,
} as const
