in-parallel-lit 2.0.0 → 3.0.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.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- /// <reference types="node" />
1
+ import { Readable } from 'node:stream';
2
+ import { Writable } from 'node:stream';
2
3
 
3
4
  declare interface Options {
4
5
  _: string[];
@@ -8,9 +9,15 @@ declare interface Options {
8
9
  'max-parallel'?: number;
9
10
  }
10
11
 
12
+ declare interface ProcessLike {
13
+ stdin: Readable;
14
+ stdout: Writable;
15
+ stderr: Writable;
16
+ }
17
+
11
18
  /**
12
19
  * prog represents the main program logic.
13
20
  */
14
- export declare function prog(opts: Options, proc: NodeJS.Process): Promise<unknown>;
21
+ export declare function prog(opts: Options, proc: ProcessLike): Promise<unknown>;
15
22
 
16
23
  export { }
package/package.json CHANGED
@@ -1,61 +1,55 @@
1
1
  {
2
- "name": "in-parallel-lit",
3
- "description": "Run multiple processes in parallel",
4
- "version": "2.0.0",
5
- "author": "Joel Voss <mail@joelvoss.com>",
6
- "license": "MIT",
7
- "homepage": "https://github.com/joelvoss/in-parallel-lit",
8
- "bugs": {
9
- "url": "https://github.com/joelvoss/in-parallel-lit/issues"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/joelvoss/in-parallel-lit.git"
14
- },
15
- "engines": {
16
- "node": ">=18"
17
- },
18
- "bin": {
19
- "in-parallel": "dist/bin.js"
20
- },
21
- "type": "module",
22
- "files": [
23
- "dist",
24
- "LICENSE",
25
- "README.md"
26
- ],
27
- "source": "./src/bin.ts",
28
- "main": "./dist/bin.cjs",
29
- "module": "./dist/bin.js",
30
- "types": "./dist/index.d.ts",
31
- "exports": {
32
- "types": "./dist/index.d.ts",
33
- "import": "./dist/bin.js",
34
- "require": "./dist/bin.cjs"
35
- },
36
- "scripts": {
37
- "test": "./Taskfile.sh test",
38
- "prepublishOnly": "./Taskfile.sh build"
39
- },
40
- "dependencies": {
41
- "cross-spawn": "^7.0.3",
42
- "mri": "^1.2.0",
43
- "sade": "^1.8.1"
44
- },
45
- "devDependencies": {
46
- "@jvdx/eslint-config": "^4.3.0",
47
- "@jvdx/prettier-config": "^0.3.4",
48
- "@types/cross-spawn": "^6.0.6",
49
- "@types/node": "^20.14.5",
50
- "prettier": "^3.3.2",
51
- "typescript": "^5.4.5",
52
- "vite": "^5.3.1",
53
- "vite-plugin-dts": "^3.9.1",
54
- "vitest": "^1.6.0"
55
- },
56
- "prettier": "@jvdx/prettier-config",
57
- "prettierIgnore": [
58
- "tests/",
59
- "dist/"
60
- ]
2
+ "name": "in-parallel-lit",
3
+ "description": "Run multiple processes in parallel",
4
+ "version": "3.0.0",
5
+ "author": "Joel Voss <mail@joelvoss.com>",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/joelvoss/in-parallel-lit",
8
+ "bugs": {
9
+ "url": "https://github.com/joelvoss/in-parallel-lit/issues"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/joelvoss/in-parallel-lit.git"
14
+ },
15
+ "engines": {
16
+ "node": ">=20"
17
+ },
18
+ "bin": {
19
+ "in-parallel": "dist/bin.js"
20
+ },
21
+ "type": "module",
22
+ "files": [
23
+ "dist",
24
+ "LICENSE",
25
+ "README.md"
26
+ ],
27
+ "source": "./src/bin.ts",
28
+ "main": "./dist/bin.cjs",
29
+ "module": "./dist/bin.js",
30
+ "types": "./dist/index.d.ts",
31
+ "exports": {
32
+ "types": "./dist/index.d.ts",
33
+ "import": "./dist/bin.js",
34
+ "require": "./dist/bin.cjs"
35
+ },
36
+ "scripts": {
37
+ "test": "./Taskfile.sh test",
38
+ "prepublishOnly": "./Taskfile.sh build"
39
+ },
40
+ "dependencies": {
41
+ "cross-spawn": "7.0.6",
42
+ "mri": "1.2.0",
43
+ "sade": "1.8.1"
44
+ },
45
+ "devDependencies": {
46
+ "@types/cross-spawn": "6.0.6",
47
+ "@types/node": "25.5.0",
48
+ "oxfmt": "0.42.0",
49
+ "oxlint": "1.57.0",
50
+ "typescript": "6.0.2",
51
+ "vite": "8.0.3",
52
+ "vite-plugin-bundle-dts": "0.2.1",
53
+ "vitest": "4.1.2"
54
+ }
61
55
  }