concurrently 7.2.1 → 7.4.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 (38) hide show
  1. package/README.md +87 -69
  2. package/dist/bin/concurrently.js +16 -10
  3. package/dist/bin/epilogue.js +16 -15
  4. package/dist/src/command-parser/expand-arguments.d.ts +5 -1
  5. package/dist/src/command-parser/expand-arguments.js +3 -5
  6. package/dist/src/command-parser/expand-npm-shortcut.js +3 -3
  7. package/dist/src/command-parser/expand-npm-wildcard.js +12 -28
  8. package/dist/src/command-parser/strip-quotes.d.ts +5 -1
  9. package/dist/src/command-parser/strip-quotes.js +2 -3
  10. package/dist/src/command.d.ts +5 -2
  11. package/dist/src/command.js +8 -5
  12. package/dist/src/completion-listener.d.ts +2 -2
  13. package/dist/src/completion-listener.js +14 -15
  14. package/dist/src/concurrently.js +14 -11
  15. package/dist/src/flow-control/input-handler.d.ts +1 -1
  16. package/dist/src/flow-control/input-handler.js +10 -7
  17. package/dist/src/flow-control/kill-on-signal.js +5 -6
  18. package/dist/src/flow-control/kill-others.d.ts +1 -1
  19. package/dist/src/flow-control/kill-others.js +6 -8
  20. package/dist/src/flow-control/log-error.js +2 -3
  21. package/dist/src/flow-control/log-exit.js +1 -2
  22. package/dist/src/flow-control/log-output.js +3 -4
  23. package/dist/src/flow-control/log-timings.d.ts +3 -3
  24. package/dist/src/flow-control/log-timings.js +13 -13
  25. package/dist/src/flow-control/restart-process.d.ts +1 -1
  26. package/dist/src/flow-control/restart-process.js +11 -6
  27. package/dist/src/get-spawn-opts.d.ts +4 -1
  28. package/dist/src/get-spawn-opts.js +9 -2
  29. package/dist/src/index.d.ts +1 -1
  30. package/dist/src/index.js +1 -1
  31. package/dist/src/logger.d.ts +2 -2
  32. package/dist/src/logger.js +16 -13
  33. package/dist/src/output-writer.d.ts +1 -1
  34. package/dist/src/output-writer.js +8 -6
  35. package/index.js +5 -3
  36. package/index.mjs +5 -4
  37. package/package.json +44 -33
  38. package/dist/.DS_Store +0 -0
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -25,14 +29,13 @@ const Rx = __importStar(require("rxjs"));
25
29
  * Class responsible for actually writing output onto a writable stream.
26
30
  */
27
31
  class OutputWriter {
28
- constructor({ outputStream, group, commands }) {
32
+ constructor({ outputStream, group, commands, }) {
29
33
  this.activeCommandIndex = 0;
30
34
  this.outputStream = outputStream;
31
35
  this.group = group;
32
36
  this.buffers = commands.map(() => []);
33
37
  if (this.group) {
34
- Rx.merge(...commands.map(c => c.close))
35
- .subscribe(command => {
38
+ Rx.merge(...commands.map((c) => c.close)).subscribe((command) => {
36
39
  if (command.index !== this.activeCommandIndex) {
37
40
  return;
38
41
  }
@@ -61,9 +64,8 @@ class OutputWriter {
61
64
  }
62
65
  }
63
66
  flushBuffer(index) {
64
- this.buffers[index].forEach(t => this.outputStream.write(t));
67
+ this.buffers[index].forEach((t) => this.outputStream.write(t));
65
68
  this.buffers[index] = [];
66
69
  }
67
70
  }
68
71
  exports.OutputWriter = OutputWriter;
69
- ;
package/index.js CHANGED
@@ -1,7 +1,9 @@
1
- //
2
- // While in local development, make sure you've run `npm run build` first.
3
- //
1
+ /*
2
+ * While in local development, make sure you've run `npm run build` first.
3
+ */
4
4
 
5
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
5
6
  const concurrently = require('./dist/src/index.js');
7
+
6
8
  module.exports = exports = concurrently.default;
7
9
  Object.assign(exports, concurrently);
package/index.mjs CHANGED
@@ -1,9 +1,10 @@
1
- //
2
- // While in local development, make sure you've run `npm run build` first.
3
- //
1
+ /*
2
+ * While in local development, make sure you've run `npm run build` first.
3
+ */
4
+
5
+ import concurrently from './dist/src/index.js';
4
6
 
5
7
  // NOTE: the star reexport doesn't work in Node <12.20, <14.13 and <15.
6
8
  export * from './dist/src/index.js';
7
9
 
8
- import concurrently from './dist/src/index.js';
9
10
  export default concurrently.default;
package/package.json CHANGED
@@ -1,26 +1,34 @@
1
1
  {
2
2
  "name": "concurrently",
3
- "version": "7.2.1",
3
+ "version": "7.4.0",
4
4
  "description": "Run commands concurrently",
5
5
  "main": "index.js",
6
6
  "types": "dist/src/index.d.ts",
7
7
  "type": "commonjs",
8
8
  "bin": {
9
- "concurrently": "./dist/bin/concurrently.js"
9
+ "concurrently": "./dist/bin/concurrently.js",
10
+ "conc": "./dist/bin/concurrently.js"
10
11
  },
11
12
  "engines": {
12
13
  "node": "^12.20.0 || ^14.13.0 || >=16.0.0"
13
14
  },
14
15
  "exports": {
15
- "import": "./index.mjs",
16
- "require": "./index.js",
17
- "default": "./index.js"
16
+ ".": {
17
+ "import": "./index.mjs",
18
+ "require": "./index.js",
19
+ "default": "./index.js",
20
+ "types": "./dist/src/index.d.ts"
21
+ },
22
+ "./package.json": "./package.json"
18
23
  },
19
24
  "scripts": {
20
25
  "build": "tsc --build",
21
26
  "postbuild": "chmod +x dist/bin/concurrently.js",
22
27
  "clean": "tsc --build --clean",
23
- "lint": "eslint . --ext js,ts --ignore-path .gitignore",
28
+ "format": "prettier --ignore-path .gitignore --check '**/{!(package-lock).json,*.y?(a)ml,*.md}'",
29
+ "format:fix": "npm run format -- --write",
30
+ "lint": "eslint . --ext mjs,js,ts --ignore-path .gitignore",
31
+ "lint:fix": "npm run lint -- --fix",
24
32
  "prepublishOnly": "npm run build",
25
33
  "report-coverage": "cat coverage/lcov.info | coveralls",
26
34
  "test": "jest"
@@ -29,6 +37,7 @@
29
37
  "type": "git",
30
38
  "url": "https://github.com/open-cli-tools/concurrently.git"
31
39
  },
40
+ "funding": "https://github.com/open-cli-tools/concurrently?sponsor=1",
32
41
  "keywords": [
33
42
  "bash",
34
43
  "concurrent",
@@ -41,9 +50,9 @@
41
50
  "license": "MIT",
42
51
  "dependencies": {
43
52
  "chalk": "^4.1.0",
44
- "date-fns": "^2.16.1",
53
+ "date-fns": "^2.29.1",
45
54
  "lodash": "^4.17.21",
46
- "rxjs": "^6.6.3",
55
+ "rxjs": "^7.0.0",
47
56
  "shell-quote": "^1.7.3",
48
57
  "spawn-command": "^0.0.2-1",
49
58
  "supports-color": "^8.1.0",
@@ -51,20 +60,32 @@
51
60
  "yargs": "^17.3.1"
52
61
  },
53
62
  "devDependencies": {
54
- "@types/jest": "^27.0.3",
63
+ "@hirez_io/observer-spy": "^2.2.0",
64
+ "@swc/core": "^1.2.224",
65
+ "@swc/jest": "^0.2.21",
66
+ "@types/jest": "^28.1.6",
55
67
  "@types/lodash": "^4.14.178",
56
- "@types/node": "^17.0.0",
68
+ "@types/node": "^16.11.47",
57
69
  "@types/shell-quote": "^1.7.1",
58
70
  "@types/supports-color": "^8.1.1",
59
- "@types/yargs": "^17.0.8",
60
- "@typescript-eslint/eslint-plugin": "^5.8.1",
61
- "@typescript-eslint/parser": "^5.8.1",
71
+ "@types/yargs": "^17.0.11",
72
+ "@typescript-eslint/eslint-plugin": "^5.33.0",
73
+ "@typescript-eslint/parser": "^5.33.0",
62
74
  "coveralls-next": "^4.1.2",
63
- "eslint": "^8.15.0",
64
- "jest": "^27.5.1",
75
+ "ctrlc-wrapper": "^0.0.4",
76
+ "esbuild": "^0.15.1",
77
+ "eslint": "^8.21.0",
78
+ "eslint-config-prettier": "^8.5.0",
79
+ "eslint-plugin-import": "^2.26.0",
80
+ "eslint-plugin-jest": "^26.8.2",
81
+ "eslint-plugin-prettier": "^4.0.0",
82
+ "eslint-plugin-simple-import-sort": "^7.0.0",
83
+ "jest": "^28.1.3",
65
84
  "jest-create-mock-instance": "^2.0.0",
66
- "ts-jest": "^27.1.4",
67
- "ts-node": "^10.4.0",
85
+ "lint-staged": "^12.4.1",
86
+ "prettier": "^2.6.2",
87
+ "simple-git-hooks": "^2.7.0",
88
+ "string-argv": "^0.3.1",
68
89
  "typescript": "^4.5.4"
69
90
  },
70
91
  "files": [
@@ -75,21 +96,11 @@
75
96
  "!**/*.spec.js",
76
97
  "!**/*.spec.d.ts"
77
98
  ],
78
- "jest": {
79
- "preset": "ts-jest",
80
- "collectCoverage": true,
81
- "collectCoverageFrom": [
82
- "src/**/*.ts",
83
- "!src/index.ts"
84
- ],
85
- "coveragePathIgnorePatterns": [
86
- "/fixtures/",
87
- "/node_modules/"
88
- ],
89
- "testEnvironment": "node",
90
- "testPathIgnorePatterns": [
91
- "/node_modules/",
92
- "/dist"
93
- ]
99
+ "simple-git-hooks": {
100
+ "pre-commit": "npx lint-staged"
101
+ },
102
+ "lint-staged": {
103
+ "*.m?{js,ts}": "eslint --fix",
104
+ "{!(package-lock).json,*.{y?(a)ml,md}}": "prettier --write"
94
105
  }
95
106
  }
package/dist/.DS_Store DELETED
Binary file