@beecode/msh-cli 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/app/cli-app.js +1 -1
  2. package/dist/app/init/parse-and-route-args.js +1 -1
  3. package/dist/controller/cli-menu/main-menu.d.ts +1 -1
  4. package/dist/controller/cli-menu/main-menu.js +2 -2
  5. package/dist/controller/yargs-router/cli-router.js +5 -5
  6. package/dist/controller/yargs-router/git-router.js +5 -5
  7. package/dist/controller/yargs-router/npm-router.js +4 -4
  8. package/dist/dal/shell-dal.js +1 -1
  9. package/dist/index-cli.d.ts +1 -1
  10. package/dist/index-cli.js +3 -3
  11. package/dist/index-init.js +1 -1
  12. package/dist/index-server.d.ts +1 -1
  13. package/dist/index-server.js +2 -2
  14. package/dist/index-terminal-ui.d.ts +1 -1
  15. package/dist/index-terminal-ui.js +2 -2
  16. package/dist/model/command/init-config.d.ts +1 -1
  17. package/dist/model/command/init-config.js +1 -1
  18. package/dist/model/command/project-command/git-clone-project-command.d.ts +1 -1
  19. package/dist/model/command/project-command/git-clone-project-command.js +2 -2
  20. package/dist/model/command/project-command/git-simple-project-command.d.ts +1 -1
  21. package/dist/model/command/project-command/git-simple-project-command.js +2 -2
  22. package/dist/model/command/project-command/git-tag-project-command.d.ts +1 -1
  23. package/dist/model/command/project-command/git-tag-project-command.js +2 -2
  24. package/dist/model/command/project-command/npm-global-project-command.d.ts +1 -1
  25. package/dist/model/command/project-command/npm-global-project-command.js +3 -3
  26. package/dist/model/command/project-command/npm-install-project-command.d.ts +1 -1
  27. package/dist/model/command/project-command/npm-install-project-command.js +2 -2
  28. package/dist/model/command/project-command/project-command.d.ts +1 -1
  29. package/dist/model/command/project-command/project-command.js +1 -1
  30. package/dist/service/clear-service.js +2 -2
  31. package/dist/service/init-config-service.js +1 -1
  32. package/dist/service/shell-service.d.ts +1 -1
  33. package/dist/service/shell-service.js +1 -1
  34. package/dist/service/terminal-wrapper.d.ts +1 -1
  35. package/dist/service/terminal-wrapper.js +1 -1
  36. package/dist/util/constant.d.ts +2 -2
  37. package/dist/util/constant.d.ts.map +1 -1
  38. package/dist/util/constant.js +3 -2
  39. package/dist/util/logger.js +1 -1
  40. package/dist/util/sub-menu.d.ts +1 -1
  41. package/dist/util/sub-menu.js +3 -3
  42. package/dist/util/update-notifier-util.d.ts.map +1 -1
  43. package/dist/util/update-notifier-util.js +3 -2
  44. package/lib/util/constant.d.ts +2 -2
  45. package/lib/util/constant.d.ts.map +1 -1
  46. package/lib/util/constant.js +5 -3
  47. package/lib/util/update-notifier-util.d.ts.map +1 -1
  48. package/lib/util/update-notifier-util.js +3 -3
  49. package/package.json +38 -67
  50. package/dist/index-jest-setup.d.ts +0 -6
  51. package/dist/index-jest-setup.d.ts.map +0 -1
  52. package/dist/index-jest-setup.js +0 -4
  53. package/lib/index-jest-setup.d.ts +0 -6
  54. package/lib/index-jest-setup.d.ts.map +0 -1
  55. package/lib/index-jest-setup.js +0 -10
@@ -1,5 +1,5 @@
1
1
  import { AppFlow } from '@beecode/msh-app-boot';
2
- import { ParseAndRouteArgs } from '../app/init/parse-and-route-args.js';
2
+ import { ParseAndRouteArgs } from '#src/app/init/parse-and-route-args';
3
3
  export class CliApp extends AppFlow {
4
4
  constructor() {
5
5
  super(new ParseAndRouteArgs());
@@ -1,5 +1,5 @@
1
1
  import { LifeCycle } from '@beecode/msh-app-boot';
2
- import { cliRouterFactory } from '../../controller/yargs-router/cli-router.js';
2
+ import { cliRouterFactory } from '#src/controller/yargs-router/cli-router';
3
3
  export class ParseAndRouteArgs extends LifeCycle {
4
4
  _argv;
5
5
  constructor() {
@@ -1,4 +1,4 @@
1
- import { BaseMenu } from '../../util/base-menu.js';
1
+ import { BaseMenu } from '#src/util/base-menu';
2
2
  export declare class MainMenu extends BaseMenu {
3
3
  private __execute;
4
4
  constructor();
@@ -1,5 +1,5 @@
1
- import { BaseMenu } from '../../util/base-menu.js';
2
- import { config } from '../../util/config.js';
1
+ import { BaseMenu } from '#src/util/base-menu';
2
+ import { config } from '#src/util/config';
3
3
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4
4
  // @ts-expect-error
5
5
  export class MainMenu extends BaseMenu {
@@ -1,9 +1,9 @@
1
1
  import yargs from 'yargs';
2
- import { GitRouter } from '../../controller/yargs-router/git-router.js';
3
- import { NpmRouter } from '../../controller/yargs-router/npm-router.js';
4
- import { InitConfig } from '../../model/command/init-config.js';
5
- import { terminalWrapperFactory } from '../../service/terminal-wrapper.js';
6
- import { config } from '../../util/config.js';
2
+ import { GitRouter } from '#src/controller/yargs-router/git-router';
3
+ import { NpmRouter } from '#src/controller/yargs-router/npm-router';
4
+ import { InitConfig } from '#src/model/command/init-config';
5
+ import { terminalWrapperFactory } from '#src/service/terminal-wrapper';
6
+ import { config } from '#src/util/config';
7
7
  export class CliRouter {
8
8
  _yargs;
9
9
  constructor(argv) {
@@ -1,8 +1,8 @@
1
- import { GitCloneProjectCommand } from '../../model/command/project-command/git-clone-project-command.js';
2
- import { GitSimpleCommand, GitSimpleProjectCommand } from '../../model/command/project-command/git-simple-project-command.js';
3
- import { GitTagProjectCommand } from '../../model/command/project-command/git-tag-project-command.js';
4
- import { projectCommandFactory } from '../../model/command/project-command/project-command.js';
5
- import { terminalWrapperFactory } from '../../service/terminal-wrapper.js';
1
+ import { GitCloneProjectCommand } from '#src/model/command/project-command/git-clone-project-command';
2
+ import { GitSimpleCommand, GitSimpleProjectCommand } from '#src/model/command/project-command/git-simple-project-command';
3
+ import { GitTagProjectCommand } from '#src/model/command/project-command/git-tag-project-command';
4
+ import { projectCommandFactory } from '#src/model/command/project-command/project-command';
5
+ import { terminalWrapperFactory } from '#src/service/terminal-wrapper';
6
6
  export class GitRouter {
7
7
  _clone(yargs) {
8
8
  yargs.command({
@@ -1,7 +1,7 @@
1
- import { npmGlobalProjectCommandFactory } from '../../model/command/project-command/npm-global-project-command.js';
2
- import { NpmInstallProjectCommand } from '../../model/command/project-command/npm-install-project-command.js';
3
- import { projectCommandFactory } from '../../model/command/project-command/project-command.js';
4
- import { terminalWrapperFactory } from '../../service/terminal-wrapper.js';
1
+ import { npmGlobalProjectCommandFactory } from '#src/model/command/project-command/npm-global-project-command';
2
+ import { NpmInstallProjectCommand } from '#src/model/command/project-command/npm-install-project-command';
3
+ import { projectCommandFactory } from '#src/model/command/project-command/project-command';
4
+ import { terminalWrapperFactory } from '#src/service/terminal-wrapper';
5
5
  export class NpmRouter {
6
6
  commands(yargs) {
7
7
  this._install(yargs);
@@ -1,5 +1,5 @@
1
1
  import shell from 'shelljs';
2
- import { logger } from '../util/logger.js';
2
+ import { logger } from '#src/util/logger';
3
3
  export const shellDal = {
4
4
  cd: (dir) => {
5
5
  shell.cd(dir);
@@ -1,2 +1,2 @@
1
- import './index-init.js';
1
+ import '#src/index-init';
2
2
  //# sourceMappingURL=index-cli.d.ts.map
package/dist/index-cli.js CHANGED
@@ -1,7 +1,7 @@
1
- import './index-init.js';
1
+ import '#src/index-init';
2
2
  import { AppStarter } from '@beecode/msh-app-boot';
3
- import { CliApp } from './app/cli-app.js';
4
- import { updateNotifierUtil } from './util/update-notifier-util.js';
3
+ import { CliApp } from '#src/app/cli-app';
4
+ import { updateNotifierUtil } from '#src/util/update-notifier-util';
5
5
  updateNotifierUtil.check().catch((err) => console.log(err)); // eslint-disable-line no-console
6
6
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7
7
  new AppStarter(new CliApp()).start().catch((err) => console.log(err)); // eslint-disable-line no-console
@@ -1,6 +1,6 @@
1
1
  import 'source-map-support/register.js';
2
2
  import { setAppBootLogger } from '@beecode/msh-app-boot/util/logger';
3
- import { logger } from './util/logger.js';
3
+ import { logger } from '#src/util/logger';
4
4
  process.on('uncaughtException', (error) => logger().error('Uncaught Exception', { error }));
5
5
  process.on('unhandledRejection', (error) => logger().error('Unhandled Rejection', { error }));
6
6
  setAppBootLogger(logger());
@@ -1,2 +1,2 @@
1
- import './index-init.js';
1
+ import './index-init';
2
2
  //# sourceMappingURL=index-server.d.ts.map
@@ -1,6 +1,6 @@
1
- import './index-init.js';
1
+ import './index-init';
2
2
  import { AppStarter } from '@beecode/msh-app-boot';
3
- import { HttpServerApp } from './app/http-server-app.js';
3
+ import { HttpServerApp } from '#src/app/http-server-app';
4
4
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
5
  new AppStarter(new HttpServerApp()).start().catch((err) => console.log(err)); // eslint-disable-line no-console
6
6
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgtc2VydmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2luZGV4LXNlcnZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLGNBQWMsQ0FBQTtBQUVyQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sdUJBQXVCLENBQUE7QUFFbEQsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDBCQUEwQixDQUFBO0FBRXhELDhEQUE4RDtBQUM5RCxJQUFJLFVBQVUsQ0FBQyxJQUFJLGFBQWEsRUFBRSxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUMsS0FBSyxDQUFDLENBQUMsR0FBUSxFQUFFLEVBQUUsQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUEsQ0FBQyxpQ0FBaUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgJy4vaW5kZXgtaW5pdCdcblxuaW1wb3J0IHsgQXBwU3RhcnRlciB9IGZyb20gJ0BiZWVjb2RlL21zaC1hcHAtYm9vdCdcblxuaW1wb3J0IHsgSHR0cFNlcnZlckFwcCB9IGZyb20gJyNzcmMvYXBwL2h0dHAtc2VydmVyLWFwcCdcblxuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1leHBsaWNpdC1hbnlcbm5ldyBBcHBTdGFydGVyKG5ldyBIdHRwU2VydmVyQXBwKCkpLnN0YXJ0KCkuY2F0Y2goKGVycjogYW55KSA9PiBjb25zb2xlLmxvZyhlcnIpKSAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLWNvbnNvbGVcbiJdfQ==
@@ -1,2 +1,2 @@
1
- import './index-init.js';
1
+ import './index-init';
2
2
  //# sourceMappingURL=index-terminal-ui.d.ts.map
@@ -1,6 +1,6 @@
1
- import './index-init.js';
1
+ import './index-init';
2
2
  import { AppStarter } from '@beecode/msh-app-boot';
3
- import { TuiApp } from './app/tui-app.js';
3
+ import { TuiApp } from '#src/app/tui-app';
4
4
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
5
  new AppStarter(new TuiApp()).start().catch((err) => console.log(err)); // eslint-disable-line no-console
6
6
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgtdGVybWluYWwtdWkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgtdGVybWluYWwtdWkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxjQUFjLENBQUE7QUFFckIsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHVCQUF1QixDQUFBO0FBRWxELE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQTtBQUV6Qyw4REFBOEQ7QUFDOUQsSUFBSSxVQUFVLENBQUMsSUFBSSxNQUFNLEVBQUUsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDLEtBQUssQ0FBQyxDQUFDLEdBQVEsRUFBRSxFQUFFLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFBLENBQUMsaUNBQWlDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICcuL2luZGV4LWluaXQnXG5cbmltcG9ydCB7IEFwcFN0YXJ0ZXIgfSBmcm9tICdAYmVlY29kZS9tc2gtYXBwLWJvb3QnXG5cbmltcG9ydCB7IFR1aUFwcCB9IGZyb20gJyNzcmMvYXBwL3R1aS1hcHAnXG5cbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tZXhwbGljaXQtYW55XG5uZXcgQXBwU3RhcnRlcihuZXcgVHVpQXBwKCkpLnN0YXJ0KCkuY2F0Y2goKGVycjogYW55KSA9PiBjb25zb2xlLmxvZyhlcnIpKSAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLWNvbnNvbGVcbiJdfQ==
@@ -1,4 +1,4 @@
1
- import { Executable, ExecuteResult } from '../../model/command/interfaces.js';
1
+ import { Executable, ExecuteResult } from '#src/model/command/interfaces';
2
2
  export declare class InitConfig implements Executable {
3
3
  execute(): Promise<ExecuteResult[]>;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { initConfigService } from '../../service/init-config-service.js';
1
+ import { initConfigService } from '#src/service/init-config-service';
2
2
  export class InitConfig {
3
3
  async execute() {
4
4
  // TODO create error handler annotation
@@ -1,4 +1,4 @@
1
- import { ExecuteResult, ProjectExecutable } from '../../../model/command/interfaces.js';
1
+ import { ExecuteResult, ProjectExecutable } from '#src/model/command/interfaces';
2
2
  export declare class GitCloneProjectCommand implements ProjectExecutable {
3
3
  protected readonly _rootDir: string;
4
4
  protected readonly _gitHost: string;
@@ -1,5 +1,5 @@
1
- import { shellService } from '../../../service/shell-service.js';
2
- import { config } from '../../../util/config.js';
1
+ import { shellService } from '#src/service/shell-service';
2
+ import { config } from '#src/util/config';
3
3
  export class GitCloneProjectCommand {
4
4
  _rootDir;
5
5
  _gitHost;
@@ -1,4 +1,4 @@
1
- import { ExecuteResult, ProjectExecutable } from '../../../model/command/interfaces.js';
1
+ import { ExecuteResult, ProjectExecutable } from '#src/model/command/interfaces';
2
2
  export declare enum GitSimpleCommand {
3
3
  STATUS = "status",
4
4
  FETCH = "fetch",
@@ -1,5 +1,5 @@
1
- import { shellService } from '../../../service/shell-service.js';
2
- import { config } from '../../../util/config.js';
1
+ import { shellService } from '#src/service/shell-service';
2
+ import { config } from '#src/util/config';
3
3
  export var GitSimpleCommand;
4
4
  (function (GitSimpleCommand) {
5
5
  GitSimpleCommand["STATUS"] = "status";
@@ -1,4 +1,4 @@
1
- import { ExecuteResult, ProjectExecutable } from '../../../model/command/interfaces.js';
1
+ import { ExecuteResult, ProjectExecutable } from '#src/model/command/interfaces';
2
2
  export declare class GitTagProjectCommand implements ProjectExecutable {
3
3
  protected readonly _rootDir: string;
4
4
  protected readonly _filterByName?: string;
@@ -1,5 +1,5 @@
1
- import { shellService } from '../../../service/shell-service.js';
2
- import { config } from '../../../util/config.js';
1
+ import { shellService } from '#src/service/shell-service';
2
+ import { config } from '#src/util/config';
3
3
  export class GitTagProjectCommand {
4
4
  _rootDir;
5
5
  _filterByName;
@@ -1,4 +1,4 @@
1
- import { Executable, ExecuteResult } from '../../../model/command/interfaces.js';
1
+ import { Executable, ExecuteResult } from '#src/model/command/interfaces';
2
2
  export type VersionOnProjects = Record<string, string[]>;
3
3
  export type UniquePackages = Record<string, {
4
4
  versions: string[];
@@ -1,9 +1,9 @@
1
1
  import { compareVersions } from 'compare-versions';
2
2
  import stringify from 'fast-json-stable-stringify';
3
3
  import path from 'path';
4
- import { fileService } from '../../../service/file-service.js';
5
- import { config } from '../../../util/config.js';
6
- import { logger } from '../../../util/logger.js';
4
+ import { fileService } from '#src/service/file-service';
5
+ import { config } from '#src/util/config';
6
+ import { logger } from '#src/util/logger';
7
7
  export class NpmGlobalProjectCommand {
8
8
  async execute() {
9
9
  try {
@@ -1,4 +1,4 @@
1
- import { ExecuteResult, ProjectExecutable } from '../../../model/command/interfaces.js';
1
+ import { ExecuteResult, ProjectExecutable } from '#src/model/command/interfaces';
2
2
  export declare class NpmInstallProjectCommand implements ProjectExecutable {
3
3
  protected readonly _rootDir: string;
4
4
  constructor(params?: {
@@ -1,6 +1,6 @@
1
1
  import path from 'path';
2
- import { shellService } from '../../../service/shell-service.js';
3
- import { config } from '../../../util/config.js';
2
+ import { shellService } from '#src/service/shell-service';
3
+ import { config } from '#src/util/config';
4
4
  export class NpmInstallProjectCommand {
5
5
  _rootDir;
6
6
  constructor(params) {
@@ -1,4 +1,4 @@
1
- import { ExecuteResult, ProjectExecutable } from '../../../model/command/interfaces.js';
1
+ import { ExecuteResult, ProjectExecutable } from '#src/model/command/interfaces';
2
2
  export declare class ProjectCommand {
3
3
  protected readonly _projects: string[];
4
4
  protected readonly _command: ProjectExecutable;
@@ -1,4 +1,4 @@
1
- import { config } from '../../../util/config.js';
1
+ import { config } from '#src/util/config';
2
2
  export class ProjectCommand {
3
3
  _projects;
4
4
  _command;
@@ -1,5 +1,5 @@
1
- // import { config } from '../util/config.js'
2
- // import * as util from '../util'
1
+ // import { config } from '#src/util/config'
2
+ // import * as util from 'util'
3
3
  export const clearService = {
4
4
  // npm: async (): Promise<void> => {
5
5
  // const promises: any[] = []
@@ -1,6 +1,6 @@
1
1
  import { fs } from 'mz';
2
2
  import path from 'path';
3
- import { config } from '../util/config.js';
3
+ import { config } from '#src/util/config';
4
4
  export const initConfigService = {
5
5
  configDefaultValue: () => [
6
6
  '# ROOT_DIR - [optional] default is the folder where msh is executed',
@@ -1,4 +1,4 @@
1
- import { ExecResult } from '../dal/shell-dal.js';
1
+ import { ExecResult } from '#src/dal/shell-dal';
2
2
  export type PrintStdMessage = Record<string, ExecResult>;
3
3
  export declare const shellService: {
4
4
  _joinResults: (results: PrintStdMessage[]) => PrintStdMessage;
@@ -1,5 +1,5 @@
1
1
  import chalk from 'chalk';
2
- import { shellDal } from '../dal/shell-dal.js';
2
+ import { shellDal } from '#src/dal/shell-dal';
3
3
  // TODO refactor object and use class instead
4
4
  export const shellService = {
5
5
  // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -1,4 +1,4 @@
1
- import { Executable } from '../model/command/interfaces.js';
1
+ import { Executable } from '#src/model/command/interfaces';
2
2
  export declare class TerminalWrapper {
3
3
  protected readonly _command: Executable;
4
4
  constructor(params: {
@@ -1,4 +1,4 @@
1
- import { shellService } from '../service/shell-service.js';
1
+ import { shellService } from '#src/service/shell-service';
2
2
  export class TerminalWrapper {
3
3
  _command;
4
4
  constructor(params) {
@@ -1,5 +1,5 @@
1
1
  export declare const constant: import("@beecode/msh-util/singleton/pattern").AnyFunctionNoParams<Readonly<{
2
- projectName: string;
3
- projectVersion: string;
2
+ projectName: any;
3
+ projectVersion: any;
4
4
  }>>;
5
5
  //# sourceMappingURL=constant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/util/constant.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;GAKpB,CAAA"}
1
+ {"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/util/constant.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;GAKpB,CAAA"}
@@ -1,7 +1,8 @@
1
- import packageJson from '../../package.json' assert { type: 'json' };
2
1
  import { singletonPattern } from '@beecode/msh-util/singleton/pattern';
2
+ // @ts-expect-error
3
+ import packageJson from '#packageJson' assert { type: 'json' };
3
4
  export const constant = singletonPattern(() => Object.freeze({
4
5
  projectName: packageJson.name,
5
6
  projectVersion: packageJson.version,
6
7
  }));
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbC9jb25zdGFudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLFdBQVcsTUFBTSxvQkFBb0IsQ0FBQyxTQUFTLElBQUksRUFBRSxNQUFNLEVBQUUsQ0FBQTtBQUNwRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQTtBQUV0RSxNQUFNLENBQUMsTUFBTSxRQUFRLEdBQUcsZ0JBQWdCLENBQUMsR0FBRyxFQUFFLENBQzdDLE1BQU0sQ0FBQyxNQUFNLENBQUM7SUFDYixXQUFXLEVBQUUsV0FBVyxDQUFDLElBQUk7SUFDN0IsY0FBYyxFQUFFLFdBQVcsQ0FBQyxPQUFPO0NBQ25DLENBQUMsQ0FDRixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHBhY2thZ2VKc29uIGZyb20gJy4uLy4uL3BhY2thZ2UuanNvbicgYXNzZXJ0IHsgdHlwZTogJ2pzb24nIH1cbmltcG9ydCB7IHNpbmdsZXRvblBhdHRlcm4gfSBmcm9tICdAYmVlY29kZS9tc2gtdXRpbC9zaW5nbGV0b24vcGF0dGVybidcblxuZXhwb3J0IGNvbnN0IGNvbnN0YW50ID0gc2luZ2xldG9uUGF0dGVybigoKSA9PlxuXHRPYmplY3QuZnJlZXplKHtcblx0XHRwcm9qZWN0TmFtZTogcGFja2FnZUpzb24ubmFtZSxcblx0XHRwcm9qZWN0VmVyc2lvbjogcGFja2FnZUpzb24udmVyc2lvbixcblx0fSlcbilcbiJdfQ==
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbC9jb25zdGFudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQTtBQUV0RSxtQkFBbUI7QUFDbkIsT0FBTyxXQUFXLE1BQU0sY0FBYyxDQUFDLFNBQVMsSUFBSSxFQUFFLE1BQU0sRUFBRSxDQUFBO0FBRTlELE1BQU0sQ0FBQyxNQUFNLFFBQVEsR0FBRyxnQkFBZ0IsQ0FBQyxHQUFHLEVBQUUsQ0FDN0MsTUFBTSxDQUFDLE1BQU0sQ0FBQztJQUNiLFdBQVcsRUFBRSxXQUFXLENBQUMsSUFBSTtJQUM3QixjQUFjLEVBQUUsV0FBVyxDQUFDLE9BQU87Q0FDbkMsQ0FBQyxDQUNGLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBzaW5nbGV0b25QYXR0ZXJuIH0gZnJvbSAnQGJlZWNvZGUvbXNoLXV0aWwvc2luZ2xldG9uL3BhdHRlcm4nXG5cbi8vIEB0cy1leHBlY3QtZXJyb3JcbmltcG9ydCBwYWNrYWdlSnNvbiBmcm9tICcjcGFja2FnZUpzb24nIGFzc2VydCB7IHR5cGU6ICdqc29uJyB9XG5cbmV4cG9ydCBjb25zdCBjb25zdGFudCA9IHNpbmdsZXRvblBhdHRlcm4oKCkgPT5cblx0T2JqZWN0LmZyZWV6ZSh7XG5cdFx0cHJvamVjdE5hbWU6IHBhY2thZ2VKc29uLm5hbWUsXG5cdFx0cHJvamVjdFZlcnNpb246IHBhY2thZ2VKc29uLnZlcnNpb24sXG5cdH0pXG4pXG4iXX0=
@@ -2,7 +2,7 @@ import { LogLevel } from '@beecode/msh-logger';
2
2
  import { LoggerStrategyConsole } from '@beecode/msh-logger/logger-strategy/console';
3
3
  import { ConsoleLogStrategySimple } from '@beecode/msh-logger/logger-strategy/console/log-strategy/simple';
4
4
  import { singletonPattern } from '@beecode/msh-util/singleton/pattern';
5
- // import { config } from '../util/config.js'
5
+ // import { config } from '#src/util/config'
6
6
  export const logger = singletonPattern(() => {
7
7
  return new LoggerStrategyConsole({
8
8
  consoleLogStrategy: new ConsoleLogStrategySimple(),
@@ -1,5 +1,5 @@
1
1
  import { ChoiceCollection } from 'inquirer';
2
- import { BaseMenu } from '../util/base-menu.js';
2
+ import { BaseMenu } from '#src/util/base-menu';
3
3
  export declare abstract class SubMenu extends BaseMenu {
4
4
  private __mainMenu;
5
5
  protected constructor(message: string, choices: ChoiceCollection);
@@ -1,6 +1,6 @@
1
- import { MainMenu } from '../controller/cli-menu/main-menu.js';
2
- import { BaseMenu } from '../util/base-menu.js';
3
- import { config } from '../util/config.js';
1
+ import { MainMenu } from '#src/controller/cli-menu/main-menu';
2
+ import { BaseMenu } from '#src/util/base-menu';
3
+ import { config } from '#src/util/config';
4
4
  export class SubMenu extends BaseMenu {
5
5
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6
6
  // @ts-expect-error
@@ -1 +1 @@
1
- {"version":3,"file":"update-notifier-util.d.ts","sourceRoot":"","sources":["../../src/util/update-notifier-util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;iBACb,QAAQ,IAAI,CAAC;CAG9B,CAAA"}
1
+ {"version":3,"file":"update-notifier-util.d.ts","sourceRoot":"","sources":["../../src/util/update-notifier-util.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB;iBACb,QAAQ,IAAI,CAAC;CAG9B,CAAA"}
@@ -1,8 +1,9 @@
1
- import packageJson from '../../package.json' assert { type: 'json' };
2
1
  import updateNotifier from 'update-notifier';
2
+ // @ts-expect-error
3
+ import packageJson from '#packageJson' assert { type: 'json' };
3
4
  export const updateNotifierUtil = {
4
5
  check: async () => {
5
6
  updateNotifier({ pkg: packageJson }).notify();
6
7
  },
7
8
  };
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBkYXRlLW5vdGlmaWVyLXV0aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbC91cGRhdGUtbm90aWZpZXItdXRpbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLFdBQVcsTUFBTSxvQkFBb0IsQ0FBQyxTQUFTLElBQUksRUFBRSxNQUFNLEVBQUUsQ0FBQTtBQUNwRSxPQUFPLGNBQWMsTUFBTSxpQkFBaUIsQ0FBQTtBQUU1QyxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRztJQUNqQyxLQUFLLEVBQUUsS0FBSyxJQUFtQixFQUFFO1FBQ2hDLGNBQWMsQ0FBQyxFQUFFLEdBQUcsRUFBRSxXQUFXLEVBQUUsQ0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFBO0lBQzlDLENBQUM7Q0FDRCxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHBhY2thZ2VKc29uIGZyb20gJy4uLy4uL3BhY2thZ2UuanNvbicgYXNzZXJ0IHsgdHlwZTogJ2pzb24nIH1cbmltcG9ydCB1cGRhdGVOb3RpZmllciBmcm9tICd1cGRhdGUtbm90aWZpZXInXG5cbmV4cG9ydCBjb25zdCB1cGRhdGVOb3RpZmllclV0aWwgPSB7XG5cdGNoZWNrOiBhc3luYyAoKTogUHJvbWlzZTx2b2lkPiA9PiB7XG5cdFx0dXBkYXRlTm90aWZpZXIoeyBwa2c6IHBhY2thZ2VKc29uIH0pLm5vdGlmeSgpXG5cdH0sXG59XG4iXX0=
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBkYXRlLW5vdGlmaWVyLXV0aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbC91cGRhdGUtbm90aWZpZXItdXRpbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLGNBQWMsTUFBTSxpQkFBaUIsQ0FBQTtBQUU1QyxtQkFBbUI7QUFDbkIsT0FBTyxXQUFXLE1BQU0sY0FBYyxDQUFDLFNBQVMsSUFBSSxFQUFFLE1BQU0sRUFBRSxDQUFBO0FBRTlELE1BQU0sQ0FBQyxNQUFNLGtCQUFrQixHQUFHO0lBQ2pDLEtBQUssRUFBRSxLQUFLLElBQW1CLEVBQUU7UUFDaEMsY0FBYyxDQUFDLEVBQUUsR0FBRyxFQUFFLFdBQVcsRUFBRSxDQUFDLENBQUMsTUFBTSxFQUFFLENBQUE7SUFDOUMsQ0FBQztDQUNELENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdXBkYXRlTm90aWZpZXIgZnJvbSAndXBkYXRlLW5vdGlmaWVyJ1xuXG4vLyBAdHMtZXhwZWN0LWVycm9yXG5pbXBvcnQgcGFja2FnZUpzb24gZnJvbSAnI3BhY2thZ2VKc29uJyBhc3NlcnQgeyB0eXBlOiAnanNvbicgfVxuXG5leHBvcnQgY29uc3QgdXBkYXRlTm90aWZpZXJVdGlsID0ge1xuXHRjaGVjazogYXN5bmMgKCk6IFByb21pc2U8dm9pZD4gPT4ge1xuXHRcdHVwZGF0ZU5vdGlmaWVyKHsgcGtnOiBwYWNrYWdlSnNvbiB9KS5ub3RpZnkoKVxuXHR9LFxufVxuIl19
@@ -1,5 +1,5 @@
1
1
  export declare const constant: import("@beecode/msh-util/singleton/pattern").AnyFunctionNoParams<Readonly<{
2
- projectName: string;
3
- projectVersion: string;
2
+ projectName: any;
3
+ projectVersion: any;
4
4
  }>>;
5
5
  //# sourceMappingURL=constant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/util/constant.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;GAKpB,CAAA"}
1
+ {"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/util/constant.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;GAKpB,CAAA"}
@@ -4,12 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.constant = void 0;
7
- var _package = _interopRequireDefault(require("../../package.json"));
8
7
  var _pattern = require("@beecode/msh-util/singleton/pattern");
8
+ var _packageJson = _interopRequireDefault(require(".."));
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ // @ts-expect-error
11
+
10
12
  var constant = exports.constant = (0, _pattern.singletonPattern)(function () {
11
13
  return Object.freeze({
12
- projectName: _package["default"].name,
13
- projectVersion: _package["default"].version
14
+ projectName: _packageJson["default"].name,
15
+ projectVersion: _packageJson["default"].version
14
16
  });
15
17
  });
@@ -1 +1 @@
1
- {"version":3,"file":"update-notifier-util.d.ts","sourceRoot":"","sources":["../../src/util/update-notifier-util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;iBACb,QAAQ,IAAI,CAAC;CAG9B,CAAA"}
1
+ {"version":3,"file":"update-notifier-util.d.ts","sourceRoot":"","sources":["../../src/util/update-notifier-util.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB;iBACb,QAAQ,IAAI,CAAC;CAG9B,CAAA"}
@@ -5,12 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.updateNotifierUtil = void 0;
8
- var _package = _interopRequireDefault(require("../../package.json"));
9
8
  var _updateNotifier = _interopRequireDefault(require("update-notifier"));
9
+ var _packageJson = _interopRequireDefault(require(".."));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
12
12
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
13
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
13
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } // @ts-expect-error
14
14
  var updateNotifierUtil = exports.updateNotifierUtil = {
15
15
  check: function () {
16
16
  var _check = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
@@ -18,7 +18,7 @@ var updateNotifierUtil = exports.updateNotifierUtil = {
18
18
  while (1) switch (_context.prev = _context.next) {
19
19
  case 0:
20
20
  (0, _updateNotifier["default"])({
21
- pkg: _package["default"]
21
+ pkg: _packageJson["default"]
22
22
  }).notify();
23
23
  case 1:
24
24
  case "end":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beecode/msh-cli",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "MicroService Shell helper",
5
5
  "keywords": [
6
6
  "shell",
@@ -20,11 +20,9 @@
20
20
  "author": "Milos Bugarinovic <milos.bugarinovic@gmail.com> (https://milos.bugarinovic.com)",
21
21
  "type": "module",
22
22
  "imports": {
23
- "#src": "./src/index.js",
24
- "#src/*": [
25
- "./src/*.js",
26
- "./src/*/index.js"
27
- ]
23
+ "#packageJson": "./package.json",
24
+ "#src": "./dist/index.js",
25
+ "#src/*": "./dist/*.js"
28
26
  },
29
27
  "exports": {
30
28
  ".": {
@@ -33,26 +31,13 @@
33
31
  "types": "./dist/index.d.ts"
34
32
  },
35
33
  "./*": {
36
- "import": [
37
- "./dist/*.js",
38
- "./dist/*/index.js"
39
- ],
40
- "types": [
41
- "./dist/*.d.ts",
42
- "./dist/*/index.d.ts"
43
- ]
34
+ "import": "./dist/*.js",
35
+ "types": "./dist/*.d.ts"
44
36
  },
45
37
  "./lib/*": {
46
- "require": [
47
- "./lib/*.js",
48
- "./lib/*/index.js"
49
- ],
50
- "types": [
51
- "./lib/*.d.ts",
52
- "./lib/*/index.d.ts"
53
- ]
54
- },
55
- "./package.json": "./package.json"
38
+ "require": "./lib/*.js",
39
+ "types": "./lib/*.d.ts"
40
+ }
56
41
  },
57
42
  "main": "./lib/index.js",
58
43
  "module": "./dist/index.js",
@@ -67,22 +52,21 @@
67
52
  ],
68
53
  "scripts": {
69
54
  "babel": "npx babel --extensions .ts",
70
- "build": "npm run clean && npm run tsc && npm run tsc-esm-alias",
55
+ "build": "npm run clean && npm run tsc",
71
56
  "build-cjs": "npm run clean-cjs && npm run tsc-cjs && npm run tsc-types && npm run tsc-types-alias && npm run fix-hybrid-lib-cjs",
72
57
  "clean": "rimraf ./dist",
73
58
  "clean-cjs": "rimraf ./lib",
74
59
  "doc": "concurrently -c auto 'npm:doc:*'",
75
- "doc:api": "npx typedoc --tsconfig ./resource/tsconfig/esm.json",
60
+ "doc:api": "npx typedoc --tsconfig tsconfig.build.json",
76
61
  "doc:toc": "npx markdown-toc -i ./README.md",
77
62
  "docker-build": "docker build -f ./resource/docker/Dockerfile -t bc-msh-cli ./",
78
63
  "docker-rmi": "docker rmi bc-msh-cli",
79
- "docker-run-package-lock-update": "docker run --rm -v ./:/usr/app/ milosbugarinovic/msh-lib-base:node20.11.1-alpine3.19 npm i --package-lock-only",
64
+ "docker-run-package-lock-update": "docker run --rm -v ./:/usr/app/ milosbugarinovic/msh-lib-base:node20.12.2-alpine3.19 npm i --package-lock-only",
80
65
  "docker-run-sh": "docker run --rm -it bc-msh-cli sh",
81
66
  "fix-hybrid-lib-cjs": "mkdir -p ./lib && echo '{\"type\": \"commonjs\"}' > ./lib/package.json",
82
67
  "init": "concurrently -c auto 'npm:init:*'",
83
68
  "init:git-config": "git config include.path ./.git-config",
84
69
  "init:husky": "npx husky install",
85
- "jest": "NODE_OPTIONS=--experimental-vm-modules npx jest",
86
70
  "lint": "npm run lint-prettier && npm run lint-eslint && npm run lint-json",
87
71
  "lint-eslint": "eslint ./ --quiet",
88
72
  "lint-eslint-fix": "npm run lint-eslint -- --fix",
@@ -101,18 +85,17 @@
101
85
  "test": "concurrently -c auto 'npm:test:*'",
102
86
  "test-coverage-unit": "npm run test:unit -- --coverage",
103
87
  "test-coverage-unit-publish": "codecov",
104
- "test:e2e": "npm run jest -- --config=./test/jest.config.ts",
105
- "test:int": "npm run jest -- --config=./jest.config.int.ts",
106
- "test:unit": "npm run jest -- --config=./jest.config.unit.ts",
107
- "tsc": "tsc -p ./resource/tsconfig/esm.json",
88
+ "test:e2e": "cd test && npm run test",
89
+ "test:int": "vitest --config=./vitest.config.int.ts",
90
+ "test:unit": "vitest --config=./vitest.config.unit.ts",
91
+ "tsc": "tsc -p tsconfig.build.json",
108
92
  "tsc-check": "npm run tsc -- --noEmit",
109
93
  "tsc-cjs": "npm run babel -- --out-dir ./lib ./src",
110
94
  "tsc-cleaner": "ts-cleaner --dist ./dist",
111
95
  "tsc-cleaner-watch": "npm run tsc-cleaner -- --watch",
112
- "tsc-esm-alias": "tsc-alias -p ./resource/tsconfig/esm.json",
113
96
  "tsc-time": "npm run tsc -- --diagnostics",
114
- "tsc-types": "tsc -p ./resource/tsconfig/types.json",
115
- "tsc-types-alias": "tsc-alias -p ./resource/tsconfig/types.json",
97
+ "tsc-types": "tsc -p tsconfig.build.json --emitDeclarationOnly --outDir ./lib",
98
+ "tsc-types-alias": "tsc-alias -p tsconfig.build.json --outDir ./lib --resolve-full-paths",
116
99
  "tsc-watch": "npm run tsc -- -w --preserveWatchOutput",
117
100
  "watch": "concurrently -c auto -n build,clean 'npm run tsc-watch' 'npm run tsc-cleaner-watch'"
118
101
  },
@@ -136,16 +119,17 @@
136
119
  }
137
120
  },
138
121
  "dependencies": {
139
- "@beecode/msh-app-boot": "1.0.2",
140
- "@beecode/msh-env": "1.0.2",
141
- "@beecode/msh-logger": "1.0.3",
142
- "@beecode/msh-util": "2.0.5",
122
+ "@beecode/msh-app-boot": "1.0.4",
123
+ "@beecode/msh-config": "1.0.0",
124
+ "@beecode/msh-env": "1.0.5",
125
+ "@beecode/msh-logger": "1.0.5",
126
+ "@beecode/msh-util": "2.0.7",
143
127
  "async-shelljs": "0.1.4",
144
128
  "chalk": "5.3.0",
145
129
  "compare-versions": "6.1.0",
146
130
  "dotenv": "16.4.5",
147
131
  "fast-json-stable-stringify": "2.1.0",
148
- "inquirer": "9.2.18",
132
+ "inquirer": "9.2.20",
149
133
  "lodash": "4.17.21",
150
134
  "minimist": "1.2.8",
151
135
  "minimist-options": "4.1.0",
@@ -156,49 +140,35 @@
156
140
  "yargs": "17.7.2"
157
141
  },
158
142
  "devDependencies": {
159
- "@babel/cli": "7.24.1",
160
- "@babel/core": "7.24.4",
143
+ "@babel/cli": "7.24.5",
144
+ "@babel/core": "7.24.5",
161
145
  "@babel/plugin-proposal-decorators": "7.24.1",
162
146
  "@babel/plugin-syntax-import-attributes": "7.24.1",
163
147
  "@babel/plugin-transform-modules-commonjs": "7.24.1",
164
- "@babel/preset-env": "7.24.4",
148
+ "@babel/preset-env": "7.24.5",
165
149
  "@babel/preset-typescript": "7.24.1",
166
- "@commitlint/cli": "19.2.2",
150
+ "@commitlint/cli": "19.3.0",
167
151
  "@commitlint/config-conventional": "19.2.2",
168
- "@commitlint/prompt": "19.2.2",
169
- "@jest/globals": "29.7.0",
152
+ "@commitlint/prompt": "19.3.0",
170
153
  "@semantic-release/changelog": "6.0.3",
171
154
  "@semantic-release/commit-analyzer": "12.0.0",
172
155
  "@semantic-release/exec": "6.0.3",
173
156
  "@semantic-release/git": "10.0.1",
174
157
  "@semantic-release/github": "10.0.3",
175
158
  "@semantic-release/release-notes-generator": "13.0.0",
176
- "@types/fast-json-stable-stringify": "2.1.0",
177
159
  "@types/inquirer": "9.0.7",
178
- "@types/lodash": "4.17.0",
160
+ "@types/lodash": "4.17.1",
179
161
  "@types/minimist": "1.2.5",
180
162
  "@types/mz": "2.7.8",
181
- "@types/node": "20.12.7",
163
+ "@types/node": "20.12.8",
182
164
  "@types/request": "2.48.12",
183
165
  "@types/shelljs": "0.8.15",
184
166
  "@types/update-notifier": "6.0.8",
185
167
  "@types/yargs": "17.0.32",
186
- "@typescript-eslint/eslint-plugin": "7.7.0",
187
- "@typescript-eslint/parser": "7.7.0",
168
+ "@vitest/coverage-v8": "1.6.0",
188
169
  "commitizen": "4.3.0",
189
170
  "concurrently": "8.2.2",
190
- "eslint": "8.57.0",
191
- "eslint-config-prettier": "8.10.0",
192
- "eslint-plugin-import": "2.29.1",
193
- "eslint-plugin-jest": "28.2.0",
194
- "eslint-plugin-no-loops": "0.3.0",
195
- "eslint-plugin-no-only-tests": "3.1.0",
196
- "eslint-plugin-prettier": "5.1.3",
197
- "eslint-plugin-sort-keys-fix": "1.1.2",
198
171
  "husky": "9.0.11",
199
- "jest": "29.7.0",
200
- "jest-extended": "4.0.2",
201
- "jest-mock": "29.7.0",
202
172
  "json-sort-cli": "4.0.3",
203
173
  "lint-staged": "15.2.2",
204
174
  "markdown-toc": "1.2.0",
@@ -207,16 +177,17 @@
207
177
  "semantic-release": "23.0.8",
208
178
  "source-map-support": "0.5.21",
209
179
  "ts-cleaner": "1.0.5",
210
- "ts-jest": "29.1.2",
211
180
  "ts-node": "10.9.2",
212
181
  "tsc-alias": "1.8.8",
213
182
  "tsc-watch": "6.2.0",
214
183
  "typedoc": "0.25.13",
215
- "typedoc-plugin-markdown": "3.17.1",
216
- "typescript": "5.4.5"
184
+ "typedoc-plugin-markdown": "4.0.0",
185
+ "typescript": "5.4.5",
186
+ "vite-tsconfig-paths": "4.3.2",
187
+ "vitest": "1.6.0"
217
188
  },
218
189
  "engines": {
219
- "node": ">=14",
220
- "npm": ">=6"
190
+ "node": ">=20.8.1",
191
+ "npm": ">=10.1.0"
221
192
  }
222
193
  }
@@ -1,6 +0,0 @@
1
- declare module '@jest/expect' {
2
- interface Matchers<R extends void | Promise<void>> extends CustomMatchers<R> {
3
- }
4
- }
5
- export {};
6
- //# sourceMappingURL=index-jest-setup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-jest-setup.d.ts","sourceRoot":"","sources":["../src/index-jest-setup.ts"],"names":[],"mappings":"AAIA,OAAO,QAAQ,cAAc,CAAC;IAC7B,UAAiB,QAAQ,CAAC,CAAC,SAAS,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;KAAG;CACtF"}
@@ -1,4 +0,0 @@
1
- import { expect } from '@jest/globals';
2
- expect.extend((await import('jest-extended')).default);
3
- process.env.TZ = 'utc';
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgtamVzdC1zZXR1cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC1qZXN0LXNldHVwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUE7QUFFdEMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxDQUFDLE1BQU0sTUFBTSxDQUFDLGVBQWUsQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDLENBQUE7QUFNdEQsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFFLEdBQUcsS0FBSyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZXhwZWN0IH0gZnJvbSAnQGplc3QvZ2xvYmFscydcblxuZXhwZWN0LmV4dGVuZCgoYXdhaXQgaW1wb3J0KCdqZXN0LWV4dGVuZGVkJykpLmRlZmF1bHQpXG5cbmRlY2xhcmUgbW9kdWxlICdAamVzdC9leHBlY3QnIHtcblx0ZXhwb3J0IGludGVyZmFjZSBNYXRjaGVyczxSIGV4dGVuZHMgdm9pZCB8IFByb21pc2U8dm9pZD4+IGV4dGVuZHMgQ3VzdG9tTWF0Y2hlcnM8Uj4ge31cbn1cblxucHJvY2Vzcy5lbnYuVFogPSAndXRjJ1xuIl19
@@ -1,6 +0,0 @@
1
- declare module '@jest/expect' {
2
- interface Matchers<R extends void | Promise<void>> extends CustomMatchers<R> {
3
- }
4
- }
5
- export {};
6
- //# sourceMappingURL=index-jest-setup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-jest-setup.d.ts","sourceRoot":"","sources":["../src/index-jest-setup.ts"],"names":[],"mappings":"AAIA,OAAO,QAAQ,cAAc,CAAC;IAC7B,UAAiB,QAAQ,CAAC,CAAC,SAAS,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;KAAG;CACtF"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- var _globals = require("@jest/globals");
4
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
6
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
7
- _globals.expect.extend((await Promise.resolve().then(function () {
8
- return _interopRequireWildcard(require('jest-extended'));
9
- }))["default"]);
10
- process.env.TZ = 'utc';