rman 0.17.0 → 0.19.0

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 (62) hide show
  1. package/bin/{rman.js → rman.mjs} +1 -1
  2. package/cjs/cli.js +27 -26
  3. package/cjs/commands/build-command.js +4 -4
  4. package/cjs/commands/changed-command.js +5 -5
  5. package/cjs/commands/ci-command.js +9 -9
  6. package/cjs/commands/execute-command.js +8 -8
  7. package/cjs/commands/info-command.js +3 -3
  8. package/cjs/commands/list-command.js +7 -6
  9. package/cjs/commands/multi-task-command.js +4 -4
  10. package/cjs/commands/publish-command.js +7 -7
  11. package/cjs/commands/run-command.js +8 -8
  12. package/cjs/commands/version-command.js +10 -10
  13. package/cjs/core/command.js +8 -8
  14. package/cjs/core/constants.js +2 -2
  15. package/cjs/core/repository.js +7 -7
  16. package/cjs/index.js +1 -1
  17. package/cjs/utils/exec.js +2 -2
  18. package/cjs/utils/get-dirname.js +1 -3
  19. package/cjs/utils/git-utils.js +5 -5
  20. package/cjs/utils/npm-run-path.js +1 -1
  21. package/cjs/utils/npm-utils.js +2 -2
  22. package/esm/cli.js +15 -14
  23. package/esm/commands/build-command.d.ts +2 -2
  24. package/esm/commands/build-command.js +2 -2
  25. package/esm/commands/changed-command.d.ts +3 -3
  26. package/esm/commands/changed-command.js +2 -2
  27. package/esm/commands/ci-command.d.ts +5 -5
  28. package/esm/commands/ci-command.js +4 -4
  29. package/esm/commands/execute-command.d.ts +4 -4
  30. package/esm/commands/execute-command.js +4 -4
  31. package/esm/commands/info-command.d.ts +2 -2
  32. package/esm/commands/info-command.js +1 -1
  33. package/esm/commands/list-command.d.ts +4 -4
  34. package/esm/commands/list-command.js +4 -3
  35. package/esm/commands/multi-task-command.d.ts +4 -4
  36. package/esm/commands/multi-task-command.js +2 -2
  37. package/esm/commands/publish-command.d.ts +5 -5
  38. package/esm/commands/publish-command.js +3 -3
  39. package/esm/commands/run-command.d.ts +5 -5
  40. package/esm/commands/run-command.js +4 -4
  41. package/esm/commands/version-command.d.ts +5 -5
  42. package/esm/commands/version-command.js +7 -7
  43. package/esm/core/command.d.ts +1 -1
  44. package/esm/core/command.js +6 -6
  45. package/esm/core/constants.d.ts +0 -1
  46. package/esm/core/constants.js +1 -1
  47. package/esm/core/repository.d.ts +1 -1
  48. package/esm/core/repository.js +4 -4
  49. package/esm/index.d.ts +1 -1
  50. package/esm/index.js +1 -1
  51. package/esm/utils/exec.js +1 -1
  52. package/esm/utils/get-dirname.js +1 -3
  53. package/esm/utils/git-utils.js +1 -1
  54. package/esm/utils/npm-run-path.js +1 -1
  55. package/esm/utils/npm-utils.js +1 -1
  56. package/package.json +5 -5
  57. package/cjs/core/types.js +0 -2
  58. package/cjs/debug.js +0 -5
  59. package/esm/core/types.d.ts +0 -14
  60. package/esm/core/types.js +0 -1
  61. package/esm/debug.d.ts +0 -1
  62. package/esm/debug.js +0 -3
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NpmHelper = exports.PackageNotFoundError = void 0;
4
- const exec_1 = require("./exec");
4
+ const exec_js_1 = require("./exec.js");
5
5
  class PackageNotFoundError extends Error {
6
6
  }
7
7
  exports.PackageNotFoundError = PackageNotFoundError;
@@ -10,7 +10,7 @@ class NpmHelper {
10
10
  this.cwd = options?.cwd || process.cwd();
11
11
  }
12
12
  async getPackageInfo(packageName) {
13
- const x = await (0, exec_1.exec)('npm', {
13
+ const x = await (0, exec_js_1.exec)('npm', {
14
14
  cwd: this.cwd,
15
15
  argv: ['view', packageName, '--json']
16
16
  });
package/esm/cli.js CHANGED
@@ -1,20 +1,20 @@
1
- import path from 'path';
2
- import fs from 'fs/promises';
3
- import yargs from "yargs";
4
1
  import chalk from 'chalk';
2
+ import fs from 'fs/promises';
5
3
  import logger from 'npmlog';
4
+ import path from 'path';
5
+ import yargs from "yargs";
6
+ import { BuildCommand } from './commands/build-command.js';
7
+ import { ChangedCommand } from './commands/changed-command.js';
8
+ import { CleanInstallCommand } from './commands/ci-command.js';
9
+ import { ExecuteCommand } from './commands/execute-command.js';
10
+ import { InfoCommand } from './commands/info-command.js';
11
+ import { ListCommand } from './commands/list-command.js';
12
+ import { PublishCommand } from './commands/publish-command.js';
13
+ import { RunCommand } from './commands/run-command.js';
14
+ import { VersionCommand } from './commands/version-command.js';
15
+ import { Command } from './core/command.js';
16
+ import { Repository } from './core/repository.js';
6
17
  import { getDirname } from './utils/get-dirname.js';
7
- import { Repository } from './core/repository';
8
- import { InfoCommand } from './commands/info-command';
9
- import { Command } from './core/command';
10
- import { ListCommand } from './commands/list-command';
11
- import { ChangedCommand } from './commands/changed-command';
12
- import { ExecuteCommand } from './commands/execute-command';
13
- import { RunCommand } from './commands/run-command';
14
- import { VersionCommand } from './commands/version-command';
15
- import { PublishCommand } from './commands/publish-command';
16
- import { CleanInstallCommand } from './commands/ci-command';
17
- import { BuildCommand } from './commands/build-command';
18
18
  export async function runCli(options) {
19
19
  try {
20
20
  const s = path.resolve(getDirname(), '../package.json');
@@ -33,6 +33,7 @@ export async function runCli(options) {
33
33
  const text = (msg
34
34
  ? msg + '\n\n' + chalk.whiteBright('Run with --help for available options')
35
35
  : (err ? err.message : ''));
36
+ // eslint-disable-next-line no-console
36
37
  console.log('\n' + chalk.red(text));
37
38
  throw msg;
38
39
  })
@@ -1,6 +1,6 @@
1
1
  import yargs from 'yargs';
2
- import { Repository } from '../core/repository';
3
- import { RunCommand } from './run-command';
2
+ import { Repository } from '../core/repository.js';
3
+ import { RunCommand } from './run-command.js';
4
4
  export declare class BuildCommand extends RunCommand<any> {
5
5
  readonly repository: Repository;
6
6
  static commandName: string;
@@ -1,5 +1,5 @@
1
- import { Command } from '../core/command';
2
- import { RunCommand } from './run-command';
1
+ import { Command } from '../core/command.js';
2
+ import { RunCommand } from './run-command.js';
3
3
  export class BuildCommand extends RunCommand {
4
4
  constructor(repository, options) {
5
5
  super(repository, 'build', options);
@@ -1,7 +1,7 @@
1
1
  import yargs from 'yargs';
2
- import { Repository } from '../core/repository';
3
- import { ListCommand } from './list-command';
4
- import { Package } from '../core/package';
2
+ import { Package } from '../core/package.js';
3
+ import { Repository } from '../core/repository.js';
4
+ import { ListCommand } from './list-command.js';
5
5
  export declare class ChangedCommand extends ListCommand {
6
6
  readonly repository: Repository;
7
7
  static commandName: string;
@@ -1,5 +1,5 @@
1
- import { ListCommand } from './list-command';
2
- import { Command } from '../core/command';
1
+ import { Command } from '../core/command.js';
2
+ import { ListCommand } from './list-command.js';
3
3
  export class ChangedCommand extends ListCommand {
4
4
  constructor(repository, options) {
5
5
  super(repository, options);
@@ -1,9 +1,9 @@
1
- import yargs from 'yargs';
2
1
  import { Task } from 'power-tasks';
3
- import { Repository } from '../core/repository';
4
- import { Package } from '../core/package';
5
- import { RunCommand } from './run-command';
6
- import { ExecuteCommandResult } from '../utils/exec';
2
+ import yargs from 'yargs';
3
+ import { Package } from '../core/package.js';
4
+ import { Repository } from '../core/repository.js';
5
+ import { ExecuteCommandResult } from '../utils/exec.js';
6
+ import { RunCommand } from './run-command.js';
7
7
  export declare class CleanInstallCommand extends RunCommand<CleanInstallCommand.Options> {
8
8
  readonly repository: Repository;
9
9
  static commandName: string;
@@ -1,10 +1,10 @@
1
- import { Task } from 'power-tasks';
2
1
  import chalk from 'chalk';
3
2
  import logger from 'npmlog';
4
- import { Command } from '../core/command';
5
- import { RunCommand } from './run-command';
6
- import { fsDelete, fsExists } from '../utils/file-utils';
7
3
  import path from 'path';
4
+ import { Task } from 'power-tasks';
5
+ import { Command } from '../core/command.js';
6
+ import { fsDelete, fsExists } from '../utils/file-utils.js';
7
+ import { RunCommand } from './run-command.js';
8
8
  export class CleanInstallCommand extends RunCommand {
9
9
  constructor(repository, options) {
10
10
  super(repository, 'clean_', options);
@@ -1,8 +1,8 @@
1
- import yargs from 'yargs';
2
- import { Repository } from '../core/repository';
3
- import { MultiTaskCommand } from './multi-task-command';
4
1
  import { Task } from 'power-tasks';
5
- import { Package } from '../core/package';
2
+ import yargs from 'yargs';
3
+ import { Package } from '../core/package.js';
4
+ import { Repository } from '../core/repository.js';
5
+ import { MultiTaskCommand } from './multi-task-command.js';
6
6
  export declare class ExecuteCommand extends MultiTaskCommand<ExecuteCommand.Options> {
7
7
  readonly repository: Repository;
8
8
  cmd: string;
@@ -1,9 +1,9 @@
1
- import logger from 'npmlog';
2
1
  import chalk from 'chalk';
3
- import { MultiTaskCommand } from './multi-task-command';
2
+ import logger from 'npmlog';
4
3
  import { Task } from 'power-tasks';
5
- import { exec } from '../utils/exec';
6
- import { Command } from '../core/command';
4
+ import { Command } from '../core/command.js';
5
+ import { exec } from '../utils/exec.js';
6
+ import { MultiTaskCommand } from './multi-task-command.js';
7
7
  export class ExecuteCommand extends MultiTaskCommand {
8
8
  constructor(repository, cmd, argv, options) {
9
9
  super(repository, options);
@@ -1,6 +1,6 @@
1
1
  import yargs from 'yargs';
2
- import { Command } from '../core/command';
3
- import { Repository } from '../core/repository';
2
+ import { Command } from '../core/command.js';
3
+ import { Repository } from '../core/repository.js';
4
4
  export declare class InfoCommand extends Command {
5
5
  static commandName: string;
6
6
  protected _execute(): Promise<any>;
@@ -1,7 +1,7 @@
1
1
  import chalk from 'chalk';
2
2
  import envinfo from 'envinfo';
3
3
  import semver from 'semver';
4
- import { Command } from '../core/command';
4
+ import { Command } from '../core/command.js';
5
5
  export class InfoCommand extends Command {
6
6
  async _execute() {
7
7
  const systemInfo = JSON.parse(await envinfo.run({
@@ -1,8 +1,8 @@
1
- import yargs from 'yargs';
2
1
  import EasyTable from 'easy-table';
3
- import { Command } from '../core/command';
4
- import { Repository } from '../core/repository';
5
- import { Package } from '../core/package';
2
+ import yargs from 'yargs';
3
+ import { Command } from '../core/command.js';
4
+ import { Package } from '../core/package.js';
5
+ import { Repository } from '../core/repository.js';
6
6
  export declare class ListCommand<TOptions extends ListCommand.Options = ListCommand.Options> extends Command<TOptions> {
7
7
  readonly repository: Repository;
8
8
  static commandName: string;
@@ -1,9 +1,9 @@
1
- import path from 'path';
2
1
  import chalk from 'chalk';
3
2
  import EasyTable from 'easy-table';
4
3
  import logger from 'npmlog';
5
- import { Command } from '../core/command';
6
- import { GitHelper } from '../utils/git-utils';
4
+ import path from 'path';
5
+ import { Command } from '../core/command.js';
6
+ import { GitHelper } from '../utils/git-utils.js';
7
7
  export class ListCommand extends Command {
8
8
  constructor(repository, options) {
9
9
  super(options);
@@ -83,6 +83,7 @@ export class ListCommand extends Command {
83
83
  }
84
84
  else if (table.rows.length) {
85
85
  logger.output('', '%s', table.toString().trim());
86
+ // eslint-disable-next-line no-console
86
87
  console.log('');
87
88
  logger.info('list', '%i Package(s) found', count);
88
89
  return arr;
@@ -1,8 +1,8 @@
1
- import yargs from 'yargs';
2
1
  import { Task } from 'power-tasks';
3
- import { Repository } from '../core/repository';
4
- import { Command } from '../core/command';
5
- import { Package } from '../core/package';
2
+ import yargs from 'yargs';
3
+ import { Command } from '../core/command.js';
4
+ import { Package } from '../core/package.js';
5
+ import { Repository } from '../core/repository.js';
6
6
  export declare abstract class MultiTaskCommand<TOptions extends MultiTaskCommand.Options = MultiTaskCommand.Options> extends Command<TOptions> {
7
7
  readonly repository: Repository;
8
8
  protected _task?: Task;
@@ -1,8 +1,8 @@
1
1
  import os from 'os';
2
2
  import { Task } from 'power-tasks';
3
3
  import { toNumber } from 'putil-varhelpers';
4
- import { Command } from '../core/command';
5
- import { isTTY } from '../core/constants';
4
+ import { Command } from '../core/command.js';
5
+ import { isTTY } from '../core/constants.js';
6
6
  export class MultiTaskCommand extends Command {
7
7
  constructor(repository, options) {
8
8
  super(options);
@@ -1,9 +1,9 @@
1
- import yargs from 'yargs';
2
1
  import { Task } from 'power-tasks';
3
- import { Repository } from '../core/repository';
4
- import { Package } from '../core/package';
5
- import { RunCommand } from './run-command';
6
- import { ExecuteCommandResult } from '../utils/exec';
2
+ import yargs from 'yargs';
3
+ import { Package } from '../core/package.js';
4
+ import { Repository } from '../core/repository.js';
5
+ import { ExecuteCommandResult } from '../utils/exec.js';
6
+ import { RunCommand } from './run-command.js';
7
7
  export declare class PublishCommand extends RunCommand<PublishCommand.Options> {
8
8
  readonly repository: Repository;
9
9
  static commandName: string;
@@ -1,9 +1,9 @@
1
1
  import chalk from 'chalk';
2
2
  import logger from 'npmlog';
3
- import { Command } from '../core/command';
4
- import { RunCommand } from './run-command';
5
3
  import path from 'path';
6
- import { NpmHelper } from '../utils/npm-utils';
4
+ import { Command } from '../core/command.js';
5
+ import { NpmHelper } from '../utils/npm-utils.js';
6
+ import { RunCommand } from './run-command.js';
7
7
  export class PublishCommand extends RunCommand {
8
8
  constructor(repository, options) {
9
9
  super(repository, 'publish', {
@@ -1,9 +1,9 @@
1
- import yargs from 'yargs';
2
1
  import { Task } from 'power-tasks';
3
- import { Repository } from '../core/repository';
4
- import { MultiTaskCommand } from './multi-task-command';
5
- import { ExecuteCommandResult } from '../utils/exec';
6
- import { Package } from '../core/package';
2
+ import yargs from 'yargs';
3
+ import { Package } from '../core/package.js';
4
+ import { Repository } from '../core/repository.js';
5
+ import { ExecuteCommandResult } from '../utils/exec.js';
6
+ import { MultiTaskCommand } from './multi-task-command.js';
7
7
  export declare class RunCommand<TOptions extends RunCommand.Options> extends MultiTaskCommand<TOptions> {
8
8
  readonly repository: Repository;
9
9
  script: string;
@@ -1,10 +1,10 @@
1
+ import chalk from 'chalk';
1
2
  import logger from 'npmlog';
2
3
  import { Task } from 'power-tasks';
3
- import chalk from 'chalk';
4
4
  import parseNpmScript from '@netlify/parse-npm-script';
5
- import { MultiTaskCommand } from './multi-task-command';
6
- import { Command } from '../core/command';
7
- import { exec } from '../utils/exec';
5
+ import { Command } from '../core/command.js';
6
+ import { exec } from '../utils/exec.js';
7
+ import { MultiTaskCommand } from './multi-task-command.js';
8
8
  export class RunCommand extends MultiTaskCommand {
9
9
  constructor(repository, script, options) {
10
10
  super(repository, options);
@@ -1,9 +1,9 @@
1
- import yargs from 'yargs';
2
1
  import { Task } from 'power-tasks';
3
- import { Repository } from '../core/repository';
4
- import { RunCommand } from './run-command';
5
- import { Package } from '../core/package';
6
- import { ExecuteCommandResult } from '../utils/exec';
2
+ import yargs from 'yargs';
3
+ import { Package } from '../core/package.js';
4
+ import { Repository } from '../core/repository.js';
5
+ import { ExecuteCommandResult } from '../utils/exec.js';
6
+ import { RunCommand } from './run-command.js';
7
7
  export declare class VersionCommand extends RunCommand<VersionCommand.Options> {
8
8
  readonly repository: Repository;
9
9
  bump: string;
@@ -1,13 +1,13 @@
1
- import path from 'path';
2
1
  import chalk from 'chalk';
3
- import semver from 'semver';
2
+ import fs from 'fs/promises';
4
3
  import logger from 'npmlog';
5
- import stripColor from 'strip-color';
4
+ import path from 'path';
6
5
  import { Task } from 'power-tasks';
7
- import { RunCommand } from './run-command';
8
- import { GitHelper } from '../utils/git-utils';
9
- import { Command } from '../core/command';
10
- import fs from 'fs/promises';
6
+ import semver from 'semver';
7
+ import stripColor from 'strip-color';
8
+ import { Command } from '../core/command.js';
9
+ import { GitHelper } from '../utils/git-utils.js';
10
+ import { RunCommand } from './run-command.js';
11
11
  export class VersionCommand extends RunCommand {
12
12
  constructor(repository, bump, options) {
13
13
  super(repository, 'version', options);
@@ -1,6 +1,6 @@
1
+ import './logger.js';
1
2
  import npmlog from 'npmlog';
2
3
  import yargs from 'yargs';
3
- import './logger';
4
4
  export interface CommandEvents {
5
5
  start: () => void | Promise<void>;
6
6
  finish: (error?: any, result?: any) => void | Promise<void>;
@@ -1,11 +1,11 @@
1
- import { AsyncEventEmitter, TypedEventEmitterClass } from 'strict-typed-events';
2
- import npmlog from 'npmlog';
3
- import isCi from 'is-ci';
4
- import merge from 'putil-merge';
5
- import './logger';
6
- import { isTTY } from './constants';
1
+ import './logger.js';
7
2
  import chalk from 'chalk';
8
3
  import figures from 'figures';
4
+ import isCi from 'is-ci';
5
+ import npmlog from 'npmlog';
6
+ import merge from 'putil-merge';
7
+ import { AsyncEventEmitter, TypedEventEmitterClass } from 'strict-typed-events';
8
+ import { isTTY } from './constants.js';
9
9
  const noOp = () => void (0);
10
10
  export class Command extends TypedEventEmitterClass(AsyncEventEmitter) {
11
11
  constructor(options) {
@@ -1,2 +1 @@
1
- export declare const DOTS: string[];
2
1
  export declare const isTTY: boolean;
@@ -1,2 +1,2 @@
1
- export const DOTS = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
1
+ // export const DOTS = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
2
2
  export const isTTY = process.stdout.isTTY && process.env.TERM !== 'dumb';
@@ -1,4 +1,4 @@
1
- import { Package } from './package';
1
+ import { Package } from './package.js';
2
2
  export declare class Repository extends Package {
3
3
  readonly dirname: string;
4
4
  readonly config: any;
@@ -1,10 +1,10 @@
1
+ import glob from 'fast-glob';
1
2
  import fs from 'fs';
3
+ import yaml from 'js-yaml';
2
4
  import path from 'path';
3
- import glob from 'fast-glob';
4
5
  import merge from 'putil-merge';
5
- import yaml from 'js-yaml';
6
- import { Package } from './package';
7
- import { getPackageJson } from '../utils/get-dirname';
6
+ import { getPackageJson } from '../utils/get-dirname.js';
7
+ import { Package } from './package.js';
8
8
  export class Repository extends Package {
9
9
  constructor(dirname, config, packages) {
10
10
  super(dirname);
package/esm/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './core/repository';
1
+ export * from './core/repository.js';
package/esm/index.js CHANGED
@@ -1 +1 @@
1
- export * from './core/repository';
1
+ export * from './core/repository.js';
package/esm/utils/exec.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spawn } from 'child_process';
2
2
  import onExit from 'signal-exit';
3
- import { npmRunPathEnv } from './npm-run-path';
3
+ import { npmRunPathEnv } from './npm-run-path.js';
4
4
  const runningChildren = new Map();
5
5
  export async function exec(command, options) {
6
6
  const opts = {
@@ -1,7 +1,5 @@
1
- // noinspection ES6UnusedImports
2
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
3
- import path from 'path';
4
1
  import fs from 'fs';
2
+ import path from 'path';
5
3
  export function getDirname() {
6
4
  const pst = Error.prepareStackTrace;
7
5
  Error.prepareStackTrace = function (_, stack) {
@@ -1,5 +1,5 @@
1
- import { exec } from './exec';
2
1
  import path from 'path';
2
+ import { exec } from './exec.js';
3
3
  export class GitHelper {
4
4
  constructor(options) {
5
5
  this.cwd = options?.cwd || process.cwd();
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * Inspired from [npm-run-path](https://github.com/sindresorhus/npm-run-path)
4
4
  */
5
- import process from 'process';
6
5
  import path from 'path';
7
6
  import pathKey from 'path-key';
7
+ import process from 'process';
8
8
  /**
9
9
  Get your [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) prepended with locally installed binaries.
10
10
  @returns The augmented path string.
@@ -1,4 +1,4 @@
1
- import { exec } from './exec';
1
+ import { exec } from './exec.js';
2
2
  export class PackageNotFoundError extends Error {
3
3
  }
4
4
  export class NpmHelper {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rman",
3
3
  "description": "Monorepo repository manager",
4
- "version": "0.17.0",
4
+ "version": "0.19.0",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "contributors": [
@@ -20,16 +20,16 @@
20
20
  "lerna"
21
21
  ],
22
22
  "bin": {
23
- "rman": "bin/rman.js"
23
+ "rman": "bin/rman.mjs"
24
24
  },
25
25
  "type": "module",
26
26
  "main": "cjs/index.js",
27
- "module": "esm/index.mjs",
27
+ "module": "esm/index.js",
28
28
  "types": "esm/index.d.ts",
29
29
  "exports": {
30
30
  ".": "./cjs/index.js",
31
31
  "./cjs": "./cjs/index.js",
32
- "./esm": "./esm/index.mjs"
32
+ "./esm": "./esm/index.js"
33
33
  },
34
34
  "dependencies": {
35
35
  "@netlify/parse-npm-script": "^0.1.2",
@@ -96,7 +96,7 @@
96
96
  ],
97
97
  "scripts": {
98
98
  "compile": "tsc -b tsconfig.json",
99
- "lint": "eslint --no-error-on-unmatched-pattern",
99
+ "lint": "eslint .",
100
100
  "clean": "npm run clean:src && npm run clean:dist",
101
101
  "clean:dist": "rimraf cjs esm coverage",
102
102
  "clean:src": "ts-cleanup -s src --all | ts-cleanup -s test",
package/cjs/core/types.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/cjs/debug.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const cli_js_1 = require("./cli.js");
4
- (0, cli_js_1.runCli)({ cwd: '/Users/ehanoglu/Yazilim/js/opra' })
5
- .catch(() => 0);
@@ -1,14 +0,0 @@
1
- export interface IWorkspaceProvider {
2
- parse: (root: string) => IWorkspaceInfo | undefined;
3
- }
4
- export interface IWorkspaceInfo {
5
- dirname: string;
6
- pkgJson: any;
7
- packages: string[];
8
- }
9
- export interface Logger {
10
- info: (message?: any, ...optionalParams: any[]) => void;
11
- error: (message?: any, ...optionalParams: any[]) => void;
12
- log: (message?: any, ...optionalParams: any[]) => void;
13
- warn: (message?: any, ...optionalParams: any[]) => void;
14
- }
package/esm/core/types.js DELETED
@@ -1 +0,0 @@
1
- export {};
package/esm/debug.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/esm/debug.js DELETED
@@ -1,3 +0,0 @@
1
- import { runCli } from './cli.js';
2
- runCli({ cwd: '/Users/ehanoglu/Yazilim/js/opra' })
3
- .catch(() => 0);