This commit is contained in:
parent
2ee628544e
commit
c783583898
@ -1,6 +1,8 @@
|
|||||||
import { Cliffy, Path, Colors } from "./deps.ts";
|
import { Cliffy, Path, Colors } from "./deps.ts";
|
||||||
import { init } from "./global.ts";
|
import { init } from "./global.ts";
|
||||||
|
|
||||||
|
import { version } from "./version.ts";
|
||||||
|
|
||||||
import setupCMD from "./commands/setup.ts";
|
import setupCMD from "./commands/setup.ts";
|
||||||
import initCMD from "./commands/init.ts";
|
import initCMD from "./commands/init.ts";
|
||||||
import bumpCMD from "./commands/bump.ts";
|
import bumpCMD from "./commands/bump.ts";
|
||||||
@ -8,13 +10,6 @@ import publishCMD from "./commands/publish.ts";
|
|||||||
import deprecateCMD from "./commands/deprecate.ts";
|
import deprecateCMD from "./commands/deprecate.ts";
|
||||||
import upgradeCMD from "./commands/upgrade.ts";
|
import upgradeCMD from "./commands/upgrade.ts";
|
||||||
|
|
||||||
let version = "unknown";
|
|
||||||
|
|
||||||
try {
|
|
||||||
const v = await import("./version.ts");
|
|
||||||
version = v.version;
|
|
||||||
} catch (err) {}
|
|
||||||
|
|
||||||
const HOME_FOLDER = Deno.env.get("HOME") || Deno.env.get("USERPROFILE") || "";
|
const HOME_FOLDER = Deno.env.get("HOME") || Deno.env.get("USERPROFILE") || "";
|
||||||
|
|
||||||
type CommandHandler = (...opts: any[]) => void | Promise<void>;
|
type CommandHandler = (...opts: any[]) => void | Promise<void>;
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "@denreg-cli",
|
"name": "@denreg-cli",
|
||||||
"version": "0.2.3",
|
"version": "0.2.4",
|
||||||
"description": "CLI for the DenReg package registry",
|
"description": "CLI for the DenReg package registry",
|
||||||
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
||||||
"contributors": [],
|
"contributors": [],
|
||||||
"files": ["**/*.ts", "**/*.js", "README.md"],
|
"files": [
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.js",
|
||||||
|
"README.md"
|
||||||
|
],
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"prepublish": "pre.ts"
|
"prepublish": "pre.ts"
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
export const version = "0.2.3"
|
export const version = "0.2.4"
|
Loading…
Reference in New Issue
Block a user