Skip to content

Commit

Permalink
binary name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brianorwhatever committed Oct 6, 2023
1 parent 6297a84 commit 5059f17
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "@aviarytech/tev2-hrgt",
"version": "0.0.3",
"version": "0.0.4",
"description": "Human Readable Glossary Tool (HRGT)",
"main": "lib/Run.js",
"types": "lib/Run.d.ts",
"bin": {
"hrgt": "./lib/Run.js"
"tev2-hrgt": "./lib/Run.js"
},
"type": "module",
"scripts": {
"build": "rm -rf lib && tsc -p .",
"rebuild": "npm uninstall @aviarytech/tev2-hrgt -g && rm lib -rf && npm run build && npm i -g",
"test": "npm run build && mocha __tests__/**/*.test.js"
"rebuild": "npm uninstall @aviarytech/tev2-hrgt -g && rm -rf lib && npm run build && npm i -g",
"test": "npm run build && mocha __tests__/**/*.test.js",
"postbuild": "cp package.json lib/"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -45,4 +46,4 @@
"files": [
"lib/**/*"
]
}
}
16 changes: 13 additions & 3 deletions src/Run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,28 @@ import { Command } from "commander";
import { readFileSync } from "fs";
import { resolve } from "path";
import { report, log } from "./Report.js";
import { fileURLToPath } from "url";

import fs from "fs";
import path from "path";
import yaml from "js-yaml";
import chalk from "chalk";
import figlet from "figlet";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const packageJson = JSON.parse(
fs.readFileSync(path.resolve(__dirname, "package.json"), "utf8")
);
const version = packageJson.version;

export let generator: Generator;
export let glossary: Glossary;
const program = new Command();

program
.name("hrgt")
.version("0.0.1")
.name("tev2-hrgt")
.version(version)
.usage(
"[ <paramlist> ] [ <globpattern> ]\n" +
"- <paramlist> (optional) is a list of key-value pairs\n" +
Expand Down Expand Up @@ -58,7 +68,7 @@ async function main(): Promise<void> {
}

console.log(
chalk.red(figlet.textSync("hrgt-cli", { horizontalLayout: "full" }))
chalk.red(figlet.textSync("TEv2 HRGT", { horizontalLayout: "full" }))
);

if (options.config) {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"esModuleInterop": true,
"resolveJsonModule": true
},
"exclude": ["node_modules", "**/*.test.ts"]
"exclude": ["node_modules", "**/*.test.ts", "lib/*"]
}

0 comments on commit 5059f17

Please sign in to comment.