Skip to content

Commit

Permalink
temporarily move cli commands to cli folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bigirishlion committed Nov 7, 2024
1 parent e841ce9 commit 0b649bb
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/cli.ts → cli/cli.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { packageJson } from "./helpers";
import { packageJson } from "./file";

import { Command } from "commander";

Expand Down
2 changes: 1 addition & 1 deletion src/commands/buy.ts → cli/commands/buy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { buy, BuyConfig, buyWithAuth, BuyWithAuthConfig } from "../buy";

Check failure on line 1 in cli/commands/buy.ts

View workflow job for this annotation

GitHub Actions / lint

Run autofix to sort these imports!
import program from "../cli";
import program from "../../cli/cli";
import { loadConfig } from "../config";

import * as helios from "@koralabs/helios";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/list.ts → cli/commands/list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import program from "../cli";
import program from "../../cli/cli";
import { loadConfig } from "../config";
import { list, ListConfig } from "../list";
import { adaToLovelace } from "../utils";
Expand Down
6 changes: 3 additions & 3 deletions src/commands/update.ts → cli/commands/update.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { loadConfig } from "../../src/config";
import { update, UpdateConfig } from "../../src/update";
import { adaToLovelace } from "../../src/utils";
import program from "../cli";
import { loadConfig } from "../config";
import { update, UpdateConfig } from "../update";
import { adaToLovelace } from "../utils";

import * as helios from "@koralabs/helios";
import { AssetNameLabel } from "@koralabs/kora-labs-common";
Expand Down
7 changes: 4 additions & 3 deletions src/commands/withdraw.ts → cli/commands/withdraw.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import program from "../cli";
import { loadConfig } from "../config";
import { withdraw, WithdrawConfig } from "../withdraw";
import { loadConfig } from "../../src/config";
import { withdraw, WithdrawConfig } from "../../src/withdraw";

import program from "./cli";

import * as helios from "@koralabs/helios";
import { AssetNameLabel } from "@koralabs/kora-labs-common";
Expand Down
2 changes: 1 addition & 1 deletion src/entrypoint.ts → cli/entrypoint.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import program from "./cli";
import { getDirname } from "./helpers";
import { getDirname } from "./file";

import fs from "fs/promises";
import path from "path";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@koralabs/handles-marketplace-contracts",
"version": "0.1.6",
"version": "0.1.7",
"description": "Smart Contract of Ada Handles Marketplace",
"type": "module",
"main": "index.js",
Expand Down
1 change: 0 additions & 1 deletion src/helpers/common/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from "./file";
export * from "./invariant";

0 comments on commit 0b649bb

Please sign in to comment.