concurrently 9.2.1 → 10.0.1

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 (92) hide show
  1. package/README.md +25 -14
  2. package/dist/bin/bin-options.d.ts +1 -0
  3. package/dist/bin/bin-options.js +1 -0
  4. package/dist/bin/{concurrently.js → index.js} +23 -62
  5. package/dist/bin/normalize-cli-command.d.ts +1 -0
  6. package/dist/bin/normalize-cli-command.js +15 -0
  7. package/dist/bin/read-package-json.d.ts +4 -0
  8. package/dist/bin/read-package-json.js +17 -0
  9. package/dist/lib/assert.d.ts +10 -0
  10. package/dist/lib/assert.js +24 -0
  11. package/dist/{src → lib}/command-parser/expand-arguments.d.ts +2 -2
  12. package/dist/{src → lib}/command-parser/expand-arguments.js +7 -12
  13. package/dist/{src → lib}/command-parser/expand-shortcut.d.ts +2 -2
  14. package/dist/{src → lib}/command-parser/expand-shortcut.js +1 -5
  15. package/dist/{src → lib}/command-parser/expand-wildcard.d.ts +2 -2
  16. package/dist/{src → lib}/command-parser/expand-wildcard.js +21 -28
  17. package/dist/{src → lib}/command.d.ts +5 -4
  18. package/dist/{src → lib}/command.js +3 -39
  19. package/dist/{src → lib}/completion-listener.d.ts +2 -2
  20. package/dist/{src → lib}/completion-listener.js +9 -46
  21. package/dist/{src → lib}/concurrently.d.ts +10 -10
  22. package/dist/{src → lib}/concurrently.js +29 -40
  23. package/dist/{src → lib}/date-format.d.ts +2 -2
  24. package/dist/{src → lib}/date-format.js +97 -76
  25. package/dist/{src → lib}/defaults.d.ts +2 -6
  26. package/dist/{src → lib}/defaults.js +16 -23
  27. package/dist/{src → lib}/flow-control/flow-controller.d.ts +1 -1
  28. package/dist/lib/flow-control/flow-controller.js +1 -0
  29. package/dist/{src → lib}/flow-control/input-handler.d.ts +4 -4
  30. package/dist/{src → lib}/flow-control/input-handler.js +8 -44
  31. package/dist/{src → lib}/flow-control/kill-on-signal.d.ts +3 -3
  32. package/dist/{src → lib}/flow-control/kill-on-signal.js +3 -7
  33. package/dist/{src → lib}/flow-control/kill-others.d.ts +3 -3
  34. package/dist/{src → lib}/flow-control/kill-others.js +8 -12
  35. package/dist/{src → lib}/flow-control/log-error.d.ts +3 -3
  36. package/dist/{src → lib}/flow-control/log-error.js +1 -5
  37. package/dist/{src → lib}/flow-control/log-exit.d.ts +3 -3
  38. package/dist/{src → lib}/flow-control/log-exit.js +1 -5
  39. package/dist/{src → lib}/flow-control/log-output.d.ts +3 -3
  40. package/dist/{src → lib}/flow-control/log-output.js +1 -5
  41. package/dist/{src → lib}/flow-control/log-timings.d.ts +3 -3
  42. package/dist/{src → lib}/flow-control/log-timings.js +8 -45
  43. package/dist/{src → lib}/flow-control/logger-padding.d.ts +3 -3
  44. package/dist/{src → lib}/flow-control/logger-padding.js +7 -7
  45. package/dist/{src → lib}/flow-control/output-error-handler.d.ts +4 -4
  46. package/dist/{src → lib}/flow-control/output-error-handler.js +3 -7
  47. package/dist/{src → lib}/flow-control/restart-process.d.ts +4 -4
  48. package/dist/lib/flow-control/restart-process.js +61 -0
  49. package/dist/{src → lib}/flow-control/teardown.d.ts +4 -5
  50. package/dist/lib/flow-control/teardown.js +45 -0
  51. package/dist/{src → lib}/index.d.ts +21 -19
  52. package/dist/lib/index.js +98 -0
  53. package/dist/{src → lib}/jsonc.js +3 -8
  54. package/dist/{src → lib}/logger.d.ts +3 -2
  55. package/dist/{src → lib}/logger.js +109 -65
  56. package/dist/{src → lib}/observables.d.ts +1 -1
  57. package/dist/{src → lib}/observables.js +3 -6
  58. package/dist/{src → lib}/output-writer.d.ts +3 -3
  59. package/dist/{src → lib}/output-writer.js +4 -41
  60. package/dist/lib/prefix-color-selector.d.ts +21 -0
  61. package/dist/{src → lib}/prefix-color-selector.js +14 -31
  62. package/dist/{src → lib}/spawn.d.ts +14 -5
  63. package/dist/lib/spawn.js +105 -0
  64. package/dist/lib/utils.d.ts +25 -0
  65. package/dist/lib/utils.js +52 -0
  66. package/dist/tsconfig.tsbuildinfo +1 -1
  67. package/docs/README.md +6 -0
  68. package/docs/cli/prefixing.md +44 -4
  69. package/docs/shell-resolution.md +48 -0
  70. package/package.json +48 -67
  71. package/dist/bin/read-package.d.ts +0 -6
  72. package/dist/bin/read-package.js +0 -56
  73. package/dist/src/assert.d.ts +0 -5
  74. package/dist/src/assert.js +0 -15
  75. package/dist/src/command-parser/command-parser.d.ts +0 -19
  76. package/dist/src/command-parser/command-parser.js +0 -2
  77. package/dist/src/command-parser/strip-quotes.d.ts +0 -16
  78. package/dist/src/command-parser/strip-quotes.js +0 -17
  79. package/dist/src/flow-control/flow-controller.js +0 -2
  80. package/dist/src/flow-control/restart-process.js +0 -98
  81. package/dist/src/flow-control/teardown.js +0 -82
  82. package/dist/src/index.js +0 -96
  83. package/dist/src/prefix-color-selector.d.ts +0 -11
  84. package/dist/src/spawn.js +0 -49
  85. package/dist/src/utils.d.ts +0 -10
  86. package/dist/src/utils.js +0 -16
  87. package/index.d.mts +0 -7
  88. package/index.d.ts +0 -11
  89. package/index.js +0 -14
  90. package/index.mjs +0 -9
  91. /package/dist/bin/{concurrently.d.ts → index.d.ts} +0 -0
  92. /package/dist/{src → lib}/jsonc.d.ts +0 -0
@@ -1,98 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.RestartProcess = void 0;
37
- const Rx = __importStar(require("rxjs"));
38
- const operators_1 = require("rxjs/operators");
39
- const defaults = __importStar(require("../defaults"));
40
- /**
41
- * Restarts commands that fail up to a defined number of times.
42
- */
43
- class RestartProcess {
44
- logger;
45
- scheduler;
46
- delay;
47
- tries;
48
- constructor({ delay, tries, logger, scheduler, }) {
49
- this.logger = logger;
50
- this.delay = delay ?? 0;
51
- this.tries = tries != null ? +tries : defaults.restartTries;
52
- this.tries = this.tries < 0 ? Infinity : this.tries;
53
- this.scheduler = scheduler;
54
- }
55
- handle(commands) {
56
- if (this.tries === 0) {
57
- return { commands };
58
- }
59
- const delayOperator = (0, operators_1.delayWhen)((_, index) => {
60
- const { delay } = this;
61
- const value = delay === 'exponential' ? Math.pow(2, index) * 1000 : delay;
62
- return Rx.timer(value, this.scheduler);
63
- });
64
- commands
65
- .map((command) => command.close.pipe((0, operators_1.take)(this.tries), (0, operators_1.takeWhile)(({ exitCode }) => exitCode !== 0)))
66
- .forEach((failure, index) => Rx.merge(
67
- // Delay the emission (so that the restarts happen on time),
68
- // explicitly telling the subscriber that a restart is needed
69
- failure.pipe(delayOperator, (0, operators_1.map)(() => true)),
70
- // Skip the first N emissions (as these would be duplicates of the above),
71
- // meaning it will be empty because of success, or failed all N times,
72
- // and no more restarts should be attempted.
73
- failure.pipe((0, operators_1.skip)(this.tries), (0, operators_1.map)(() => false), (0, operators_1.defaultIfEmpty)(false))).subscribe((restart) => {
74
- const command = commands[index];
75
- if (restart) {
76
- this.logger.logCommandEvent(`${command.command} restarted`, command);
77
- command.start();
78
- }
79
- }));
80
- return {
81
- commands: commands.map((command) => {
82
- const closeStream = command.close.pipe((0, operators_1.filter)(({ exitCode }, emission) => {
83
- // We let all success codes pass, and failures only after restarting won't happen again
84
- return exitCode === 0 || emission >= this.tries;
85
- }));
86
- // Return a proxy so that mutations happen on the original Command object.
87
- // If either `Object.assign()` or `Object.create()` were used, it'd be hard to
88
- // reflect the mutations on Command objects referenced by previous flow controllers.
89
- return new Proxy(command, {
90
- get(target, prop) {
91
- return prop === 'close' ? closeStream : target[prop];
92
- },
93
- });
94
- }),
95
- };
96
- }
97
- }
98
- exports.RestartProcess = RestartProcess;
@@ -1,82 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.Teardown = void 0;
37
- const Rx = __importStar(require("rxjs"));
38
- const spawn_1 = require("../spawn");
39
- class Teardown {
40
- logger;
41
- spawn;
42
- teardown;
43
- constructor({ logger, spawn, commands, }) {
44
- this.logger = logger;
45
- this.spawn = spawn || spawn_1.spawn;
46
- this.teardown = commands;
47
- }
48
- handle(commands) {
49
- const { logger, teardown, spawn } = this;
50
- const onFinish = async () => {
51
- if (!teardown.length) {
52
- return;
53
- }
54
- for (const command of teardown) {
55
- logger.logGlobalEvent(`Running teardown command "${command}"`);
56
- const child = spawn(command, (0, spawn_1.getSpawnOpts)({ stdio: 'raw' }));
57
- const error = Rx.fromEvent(child, 'error');
58
- const close = Rx.fromEvent(child, 'close');
59
- try {
60
- const [exitCode, signal] = await Promise.race([
61
- Rx.firstValueFrom(error).then((event) => {
62
- throw event;
63
- }),
64
- Rx.firstValueFrom(close).then((event) => event),
65
- ]);
66
- logger.logGlobalEvent(`Teardown command "${command}" exited with code ${exitCode ?? signal}`);
67
- if (signal === 'SIGINT') {
68
- break;
69
- }
70
- }
71
- catch (error) {
72
- const errorText = String(error instanceof Error ? error.stack || error : error);
73
- logger.logGlobalEvent(`Teardown command "${command}" errored:`);
74
- logger.logGlobalEvent(errorText);
75
- return Promise.reject();
76
- }
77
- }
78
- };
79
- return { commands, onFinish };
80
- }
81
- }
82
- exports.Teardown = Teardown;
package/dist/src/index.js DELETED
@@ -1,96 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RestartProcess = exports.LogTimings = exports.LogOutput = exports.LogExit = exports.LogError = exports.KillOthers = exports.KillOnSignal = exports.InputHandler = exports.Command = exports.Logger = exports.createConcurrently = void 0;
4
- exports.concurrently = concurrently;
5
- const assert_1 = require("./assert");
6
- const command_1 = require("./command");
7
- Object.defineProperty(exports, "Command", { enumerable: true, get: function () { return command_1.Command; } });
8
- const concurrently_1 = require("./concurrently");
9
- Object.defineProperty(exports, "createConcurrently", { enumerable: true, get: function () { return concurrently_1.concurrently; } });
10
- const input_handler_1 = require("./flow-control/input-handler");
11
- Object.defineProperty(exports, "InputHandler", { enumerable: true, get: function () { return input_handler_1.InputHandler; } });
12
- const kill_on_signal_1 = require("./flow-control/kill-on-signal");
13
- Object.defineProperty(exports, "KillOnSignal", { enumerable: true, get: function () { return kill_on_signal_1.KillOnSignal; } });
14
- const kill_others_1 = require("./flow-control/kill-others");
15
- Object.defineProperty(exports, "KillOthers", { enumerable: true, get: function () { return kill_others_1.KillOthers; } });
16
- const log_error_1 = require("./flow-control/log-error");
17
- Object.defineProperty(exports, "LogError", { enumerable: true, get: function () { return log_error_1.LogError; } });
18
- const log_exit_1 = require("./flow-control/log-exit");
19
- Object.defineProperty(exports, "LogExit", { enumerable: true, get: function () { return log_exit_1.LogExit; } });
20
- const log_output_1 = require("./flow-control/log-output");
21
- Object.defineProperty(exports, "LogOutput", { enumerable: true, get: function () { return log_output_1.LogOutput; } });
22
- const log_timings_1 = require("./flow-control/log-timings");
23
- Object.defineProperty(exports, "LogTimings", { enumerable: true, get: function () { return log_timings_1.LogTimings; } });
24
- const logger_padding_1 = require("./flow-control/logger-padding");
25
- const output_error_handler_1 = require("./flow-control/output-error-handler");
26
- const restart_process_1 = require("./flow-control/restart-process");
27
- Object.defineProperty(exports, "RestartProcess", { enumerable: true, get: function () { return restart_process_1.RestartProcess; } });
28
- const teardown_1 = require("./flow-control/teardown");
29
- const logger_1 = require("./logger");
30
- Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return logger_1.Logger; } });
31
- const utils_1 = require("./utils");
32
- function concurrently(commands, options = {}) {
33
- (0, assert_1.assertDeprecated)(options.killOthers === undefined, 'killOthers', 'Use killOthersOn instead.');
34
- // To avoid empty strings from hiding the output of commands that don't have a name,
35
- // keep in the list of commands to hide only strings with some length.
36
- // This might happen through the CLI when no `--hide` argument is specified, for example.
37
- const hide = (0, utils_1.castArray)(options.hide).filter((id) => id || id === 0);
38
- const logger = options.logger ||
39
- new logger_1.Logger({
40
- hide,
41
- prefixFormat: options.prefix,
42
- commandLength: options.prefixLength,
43
- raw: options.raw,
44
- timestampFormat: options.timestampFormat,
45
- });
46
- if (options.prefixColors === false) {
47
- logger.toggleColors(false);
48
- }
49
- const abortController = new AbortController();
50
- const outputStream = options.outputStream || process.stdout;
51
- return (0, concurrently_1.concurrently)(commands, {
52
- maxProcesses: options.maxProcesses,
53
- raw: options.raw,
54
- successCondition: options.successCondition,
55
- cwd: options.cwd,
56
- hide,
57
- logger,
58
- outputStream,
59
- group: options.group,
60
- abortSignal: abortController.signal,
61
- controllers: [
62
- // LoggerPadding needs to run before any other controllers that might output something
63
- ...(options.padPrefix ? [new logger_padding_1.LoggerPadding({ logger })] : []),
64
- new log_error_1.LogError({ logger }),
65
- new log_output_1.LogOutput({ logger }),
66
- new log_exit_1.LogExit({ logger }),
67
- new input_handler_1.InputHandler({
68
- logger,
69
- defaultInputTarget: options.defaultInputTarget,
70
- inputStream: options.inputStream || (options.handleInput ? process.stdin : undefined),
71
- pauseInputStreamOnFinish: options.pauseInputStreamOnFinish,
72
- }),
73
- new kill_on_signal_1.KillOnSignal({ process, abortController }),
74
- new restart_process_1.RestartProcess({
75
- logger,
76
- delay: options.restartDelay,
77
- tries: options.restartTries,
78
- }),
79
- new kill_others_1.KillOthers({
80
- logger,
81
- conditions: options.killOthersOn || options.killOthers || [],
82
- timeoutMs: options.killTimeout,
83
- killSignal: options.killSignal,
84
- abortController,
85
- }),
86
- new output_error_handler_1.OutputErrorHandler({ abortController, outputStream }),
87
- new log_timings_1.LogTimings({
88
- logger: options.timings ? logger : undefined,
89
- timestampFormat: options.timestampFormat,
90
- }),
91
- new teardown_1.Teardown({ logger, spawn: options.spawn, commands: options.teardown || [] }),
92
- ],
93
- prefixColors: options.prefixColors || [],
94
- additionalArguments: options.additionalArguments,
95
- });
96
- }
@@ -1,11 +0,0 @@
1
- import chalk from 'chalk';
2
- export declare class PrefixColorSelector {
3
- private colorGenerator;
4
- constructor(customColors?: string | string[]);
5
- /** A list of colors that are readable in a terminal. */
6
- static get ACCEPTABLE_CONSOLE_COLORS(): ("stderr" | keyof chalk.Chalk | "supportsColor" | "Level" | "Color" | "ForegroundColor" | "BackgroundColor" | "Modifiers")[];
7
- /**
8
- * @returns The given custom colors then a set of acceptable console colors indefinitely.
9
- */
10
- getNextColor(): string;
11
- }
package/dist/src/spawn.js DELETED
@@ -1,49 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getSpawnOpts = void 0;
7
- exports.spawn = spawn;
8
- const assert_1 = __importDefault(require("assert"));
9
- const child_process_1 = require("child_process");
10
- const supports_color_1 = __importDefault(require("supports-color"));
11
- /**
12
- * Spawns a command using `cmd.exe` on Windows, or `/bin/sh` elsewhere.
13
- */
14
- // Implementation based off of https://github.com/mmalecki/spawn-command/blob/v0.0.2-1/lib/spawn-command.js
15
- function spawn(command, options,
16
- // For testing
17
- spawn = child_process_1.spawn, process = global.process) {
18
- let file = '/bin/sh';
19
- let args = ['-c', command];
20
- if (process.platform === 'win32') {
21
- file = 'cmd.exe';
22
- args = ['/s', '/c', `"${command}"`];
23
- options.windowsVerbatimArguments = true;
24
- }
25
- return spawn(file, args, options);
26
- }
27
- const getSpawnOpts = ({ colorSupport = supports_color_1.default.stdout, cwd, process = global.process, ipc, stdio = 'normal', env = {}, }) => {
28
- const stdioValues = stdio === 'normal'
29
- ? ['pipe', 'pipe', 'pipe']
30
- : stdio === 'raw'
31
- ? ['inherit', 'inherit', 'inherit']
32
- : ['pipe', 'ignore', 'ignore'];
33
- if (ipc != null) {
34
- // Avoid overriding the stdout/stderr/stdin
35
- assert_1.default.ok(ipc > 2, '[concurrently] the IPC channel number should be > 2');
36
- stdioValues[ipc] = 'ipc';
37
- }
38
- return {
39
- cwd: cwd || process.cwd(),
40
- stdio: stdioValues,
41
- ...(process.platform.startsWith('win') && { detached: false }),
42
- env: {
43
- ...(colorSupport ? { FORCE_COLOR: colorSupport.level.toString() } : {}),
44
- ...process.env,
45
- ...env,
46
- },
47
- };
48
- };
49
- exports.getSpawnOpts = getSpawnOpts;
@@ -1,10 +0,0 @@
1
- /**
2
- * Escapes a string for use in a regular expression.
3
- */
4
- export declare function escapeRegExp(str: string): string;
5
- type CastArrayResult<T> = T extends undefined | null ? never[] : T extends unknown[] ? T : T[];
6
- /**
7
- * Casts a value to an array if it's not one.
8
- */
9
- export declare function castArray<T = never[]>(value?: T): CastArrayResult<T>;
10
- export {};
package/dist/src/utils.js DELETED
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.escapeRegExp = escapeRegExp;
4
- exports.castArray = castArray;
5
- /**
6
- * Escapes a string for use in a regular expression.
7
- */
8
- function escapeRegExp(str) {
9
- return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
10
- }
11
- /**
12
- * Casts a value to an array if it's not one.
13
- */
14
- function castArray(value) {
15
- return (Array.isArray(value) ? value : value != null ? [value] : []);
16
- }
package/index.d.mts DELETED
@@ -1,7 +0,0 @@
1
- /*
2
- * While in local development, make sure you've run `pnpm run build` first.
3
- */
4
- import { concurrently } from './dist/src/index.js';
5
-
6
- export * from './dist/src/index.js';
7
- export default concurrently;
package/index.d.ts DELETED
@@ -1,11 +0,0 @@
1
- /*
2
- * While in local development, make sure you've run `pnpm run build` first.
3
- */
4
- import { concurrently } from './dist/src/index.js';
5
-
6
- export * from './dist/src/index.js';
7
- // @ts-expect-error ignore the usage of `export =` along with `export default`.
8
- // This is seemingly fine, but the file needs to be included in the TS project, which can't be done
9
- // due to importing from `dist`. See https://stackoverflow.com/q/42609768/2083599
10
- export = concurrently;
11
- export default concurrently;
package/index.js DELETED
@@ -1,14 +0,0 @@
1
- /*
2
- * While in local development, make sure you've run `pnpm run build` first.
3
- */
4
-
5
- // eslint-disable-next-line @typescript-eslint/no-require-imports
6
- const concurrently = require('./dist/src/index.js');
7
-
8
- // For require()
9
- module.exports = exports = concurrently.concurrently;
10
-
11
- // For TS + import syntax; mimics `export default`
12
- exports.default = exports;
13
-
14
- Object.assign(exports, concurrently);
package/index.mjs DELETED
@@ -1,9 +0,0 @@
1
- /*
2
- * While in local development, make sure you've run `pnpm run build` first.
3
- */
4
-
5
- import { concurrently } from './dist/src/index.js';
6
-
7
- export * from './dist/src/index.js';
8
-
9
- export default concurrently;
File without changes
File without changes