Skip to content

Commit

Permalink
[hotfix] Esm module revert back for preventing using cli diretcly
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemkosk committed Dec 10, 2023
1 parent 8f663c0 commit 9746275
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions bin/index.ts
Expand Up @@ -6,8 +6,8 @@ import packages from '../package.json'

import CommandFactory from '../lib/command/commandFactory'

import type Command from '../lib/command/command'
import CommandInvoker from '../lib/command/commandInvoker'
import type Command from '../lib/command/Command'
import CommandInvoker from '../lib/command/CommandInvoker'
import { CommandTypes } from '../lib/const'

const program = new CommanderCommand()
Expand Down
2 changes: 1 addition & 1 deletion lib/command/CommandInvoker.ts
@@ -1,4 +1,4 @@
import type Command from './command'
import type Command from './Command'

// eslint-disable-next-line @typescript-eslint/no-extraneous-class
export default class CommandInvoker {
Expand Down
16 changes: 8 additions & 8 deletions lib/command/commandFactory.ts
@@ -1,12 +1,12 @@
import { CommandTypes } from '../const'
import type Command from './command'
import CompareCommand from './commandTypes/compareCommand'
import LsCommand from './commandTypes/lsCommand'
import RestoreCommand from './commandTypes/restoreCommand'
import RevertCommand from './commandTypes/revertCommand'
import SyncCommand from './commandTypes/syncCommand'
import UpdateAllCommand from './commandTypes/updateAllCommand'
import UpdateCommand from './commandTypes/updateCommand'
import type Command from './Command'
import CompareCommand from './commandTypes/CompareCommand'
import LsCommand from './commandTypes/LsCommand'
import RestoreCommand from './commandTypes/RestoreCommand'
import RevertCommand from './commandTypes/RevertCommand'
import SyncCommand from './commandTypes/SyncCommand'
import UpdateAllCommand from './commandTypes/UpdateAllCommand'
import UpdateCommand from './commandTypes/UpdateCommand'

export default class CommandFactory {
createCommand (commandType: number): Command | null {
Expand Down
2 changes: 1 addition & 1 deletion lib/command/commandTypes/CompareCommand.ts
@@ -1,4 +1,4 @@
import Command from '../command'
import Command from '../Command'
import { compareEnvFiles } from '../../handler/envHandler'
import { getEnvFilesRecursively } from '../../handler/fileHandler'
import Table from 'cli-table3'
Expand Down
2 changes: 1 addition & 1 deletion lib/command/commandTypes/LsCommand.ts
@@ -1,4 +1,4 @@
import Command from '../command'
import Command from '../Command'
import { getValuesInEnv } from '../../handler/envHandler'
import { getEnvFilesRecursively } from '../../handler/fileHandler'
import Table from 'cli-table3'
Expand Down
2 changes: 1 addition & 1 deletion lib/command/commandTypes/RestoreCommand.ts
@@ -1,4 +1,4 @@
import Command from '../command'
import Command from '../Command'
import { restoreEnvFile } from '../../handler/envHandler'
import chalk from 'chalk'
import { consola } from 'consola'
Expand Down
2 changes: 1 addition & 1 deletion lib/command/commandTypes/RevertCommand.ts
@@ -1,4 +1,4 @@
import Command from '../command'
import Command from '../Command'
import { updateEnvFile, getUniqueEnvNames } from '../../handler/envHandler'
import { getEnvFilesRecursively } from '../../handler/fileHandler'
import { getEnvVersions } from '../../handler/historyHandler'
Expand Down
2 changes: 1 addition & 1 deletion lib/command/commandTypes/SyncCommand.ts
@@ -1,4 +1,4 @@
import Command from '../command'
import Command from '../Command'
import { syncEnvFile } from '../../handler/envHandler'
import chalk from 'chalk'
import { consola } from 'consola'
Expand Down
2 changes: 1 addition & 1 deletion lib/command/commandTypes/UpdateAllCommand.ts
@@ -1,4 +1,4 @@
import Command from '../command'
import Command from '../Command'
import { updateAllEnvFile, promptForEnvVariable } from '../../handler/envHandler'
import chalk from 'chalk'
import inquirer from 'inquirer'
Expand Down
2 changes: 1 addition & 1 deletion lib/command/commandTypes/UpdateCommand.ts
@@ -1,4 +1,4 @@
import Command from '../command'
import Command from '../Command'
import { getUniqueEnvNames, updateEnvFile } from '../../handler/envHandler'
import { getEnvFilesRecursively } from '../../handler/fileHandler'
import chalk from 'chalk'
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9746275

Please sign in to comment.