Fix version import
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Fabian Stamm 2020-08-16 19:41:28 +02:00
parent 2ee628544e
commit c783583898
3 changed files with 9 additions and 10 deletions

View File

@ -1,6 +1,8 @@
import { Cliffy, Path, Colors } from "./deps.ts";
import { init } from "./global.ts";
import { version } from "./version.ts";
import setupCMD from "./commands/setup.ts";
import initCMD from "./commands/init.ts";
import bumpCMD from "./commands/bump.ts";
@ -8,13 +10,6 @@ import publishCMD from "./commands/publish.ts";
import deprecateCMD from "./commands/deprecate.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") || "";
type CommandHandler = (...opts: any[]) => void | Promise<void>;

View File

@ -1,10 +1,14 @@
{
"name": "@denreg-cli",
"version": "0.2.3",
"version": "0.2.4",
"description": "CLI for the DenReg package registry",
"author": "Fabian Stamm <dev@fabianstamm.de>",
"contributors": [],
"files": ["**/*.ts", "**/*.js", "README.md"],
"files": [
"**/*.ts",
"**/*.js",
"README.md"
],
"hooks": {
"prepublish": "pre.ts"
}

View File

@ -1 +1 @@
export const version = "0.2.3"
export const version = "0.2.4"