Skip to content

Commit

Permalink
Import version from version file
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Jan 18, 2024
1 parent b48ed97 commit 6890357
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/usr/bin/env node
import * as yargs from "yargs";

// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
import { version } from "../package.json";
import { commitCommand } from "./commands/commit";
import { compileCommand } from "./commands/compile";
import { initCommand } from "./commands/init";
Expand All @@ -13,6 +10,7 @@ import { runCommand } from "./commands/run";
import { statusCommand } from "./commands/status";
import { uncommitCommand } from "./commands/uncommit";
import { watchCommand } from "./commands/watch";
import { version } from "./version";

function wrapHandler<T1, T2>(
input: yargs.CommandModule<T1, T2>,
Expand Down
4 changes: 1 addition & 3 deletions src/commands/init.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { promises as fsp } from "fs";
import { CommandModule } from "yargs";

// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
import { version } from "../../package.json";
import { getCurrentMigrationLocation, writeCurrentMigration } from "../current";
import { parseSettings } from "../settings";
import { version } from "../version";
import {
CommonArgv,
DEFAULT_GMRC_PATH,
Expand Down

0 comments on commit 6890357

Please sign in to comment.