@intlayer/chokidar 7.0.3 → 7.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.
- package/dist/cjs/_virtual/_utils_asset.cjs +1 -1
- package/dist/cjs/index.cjs +4 -2
- package/dist/cjs/utils/runParallel/bin.cjs +55 -0
- package/dist/cjs/utils/runParallel/bin.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/bootstrap.cjs +24 -0
- package/dist/cjs/utils/runParallel/bootstrap.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/index.cjs +111 -0
- package/dist/cjs/utils/runParallel/index.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/pidTree.cjs +145 -0
- package/dist/cjs/utils/runParallel/pidTree.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/ps.cjs +49 -0
- package/dist/cjs/utils/runParallel/ps.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/runTask.cjs +155 -0
- package/dist/cjs/utils/runParallel/runTask.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/spawnPosix.cjs +60 -0
- package/dist/cjs/utils/runParallel/spawnPosix.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/spawnWin32.cjs +44 -0
- package/dist/cjs/utils/runParallel/spawnWin32.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/wmic.cjs +52 -0
- package/dist/cjs/utils/runParallel/wmic.cjs.map +1 -0
- package/dist/esm/_virtual/_utils_asset.mjs +1 -1
- package/dist/esm/index.mjs +3 -2
- package/dist/esm/utils/runParallel/bin.mjs +53 -0
- package/dist/esm/utils/runParallel/bin.mjs.map +1 -0
- package/dist/esm/utils/runParallel/bootstrap.mjs +23 -0
- package/dist/esm/utils/runParallel/bootstrap.mjs.map +1 -0
- package/dist/esm/utils/runParallel/index.mjs +109 -0
- package/dist/esm/utils/runParallel/index.mjs.map +1 -0
- package/dist/esm/utils/runParallel/pidTree.mjs +143 -0
- package/dist/esm/utils/runParallel/pidTree.mjs.map +1 -0
- package/dist/esm/utils/runParallel/ps.mjs +47 -0
- package/dist/esm/utils/runParallel/ps.mjs.map +1 -0
- package/dist/esm/utils/runParallel/runTask.mjs +153 -0
- package/dist/esm/utils/runParallel/runTask.mjs.map +1 -0
- package/dist/esm/utils/runParallel/spawnPosix.mjs +58 -0
- package/dist/esm/utils/runParallel/spawnPosix.mjs.map +1 -0
- package/dist/esm/utils/runParallel/spawnWin32.mjs +42 -0
- package/dist/esm/utils/runParallel/spawnWin32.mjs.map +1 -0
- package/dist/esm/utils/runParallel/wmic.mjs +50 -0
- package/dist/esm/utils/runParallel/wmic.mjs.map +1 -0
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +2 -2
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -2
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +2 -2
- package/dist/types/index.d.ts +3 -2
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -2
- package/dist/types/utils/chunkJSON.d.ts.map +1 -1
- package/dist/types/utils/runParallel/bin.d.ts +15 -0
- package/dist/types/utils/runParallel/bin.d.ts.map +1 -0
- package/dist/types/utils/runParallel/bootstrap.d.ts +5 -0
- package/dist/types/utils/runParallel/bootstrap.d.ts.map +1 -0
- package/dist/types/utils/runParallel/index.d.ts +14 -0
- package/dist/types/utils/runParallel/index.d.ts.map +1 -0
- package/dist/types/utils/runParallel/pidTree.d.ts +24 -0
- package/dist/types/utils/runParallel/pidTree.d.ts.map +1 -0
- package/dist/types/utils/runParallel/ps.d.ts +11 -0
- package/dist/types/utils/runParallel/ps.d.ts.map +1 -0
- package/dist/types/utils/runParallel/runTask.d.ts +26 -0
- package/dist/types/utils/runParallel/runTask.d.ts.map +1 -0
- package/dist/types/utils/runParallel/spawnPosix.d.ts +21 -0
- package/dist/types/utils/runParallel/spawnPosix.d.ts.map +1 -0
- package/dist/types/utils/runParallel/spawnWin32.d.ts +21 -0
- package/dist/types/utils/runParallel/spawnWin32.d.ts.map +1 -0
- package/dist/types/utils/runParallel/wmic.d.ts +11 -0
- package/dist/types/utils/runParallel/wmic.d.ts.map +1 -0
- package/package.json +18 -18
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/utils/runParallel/pidTree.d.ts
|
|
2
|
+
interface ListOptions {
|
|
3
|
+
root?: boolean;
|
|
4
|
+
advanced?: boolean;
|
|
5
|
+
}
|
|
6
|
+
type ProcessInfo = {
|
|
7
|
+
pid: number;
|
|
8
|
+
ppid?: number;
|
|
9
|
+
};
|
|
10
|
+
type ResultType<T extends ListOptions | undefined> = T extends {
|
|
11
|
+
advanced: true;
|
|
12
|
+
} ? ProcessInfo[] : number[];
|
|
13
|
+
type ListCallback<T extends ListOptions | undefined> = (err: Error | null, list?: ResultType<T>) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Get the list of children pids of the given pid.
|
|
16
|
+
* @param pid A PID. If -1 will return all the pids.
|
|
17
|
+
* @param options Optional options object.
|
|
18
|
+
* @param callback Called when the list is ready. If not provided a promise is returned instead.
|
|
19
|
+
* @returns Only when the callback is not provided.
|
|
20
|
+
*/
|
|
21
|
+
declare const list: <T extends ListOptions | undefined>(pid: number | string, options?: T | ListCallback<T>, callback?: ListCallback<T>) => Promise<ResultType<T>> | undefined;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { list };
|
|
24
|
+
//# sourceMappingURL=pidTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pidTree.d.ts","names":[],"sources":["../../../../src/utils/runParallel/pidTree.ts"],"sourcesContent":[],"mappings":";UAgBU,WAAA;EAAA,IAAA,CAAA,EAAA,OAAW;EAKhB,QAAA,CAAA,EAAA,OAAW;AAAA;KAAX,WAAA,GACqB;EAA2B,GAAA,EAAA,MAAA;EAGjD,IAAA,CAAA,EAAA,MAAA;CAAW;AAAA,KAHV,UAOA,CAAA,UAPqB,WAOT,GAAA,SAAA,CAAA,GAPoC,CAOpC,SAAA;EAAW,QAAA,EAAA,IAAA;CACrB,GALH,WAKG,EAAA,GAAA,MAAA,EAAA;KADF,YAEe,CAAA,UAFQ,WAER,GAAA,SAAA,CAAA,GAAA,CAAA,GAAA,EADb,KACa,GAAA,IAAA,EAAA,IAAA,CAAA,EAAX,UAAW,CAAA,CAAA,CAAA,EAAA,GAAA,IAAA;;;AA8LpB;;;;;AAG0B,cAHb,IAGa,EAAA,CAAA,UAHK,WAGL,GAAA,SAAA,CAAA,CAAA,GAAA,EAAA,MAAA,GAAA,MAAA,EAAA,OAAA,CAAA,EADd,CACc,GADV,YACU,CADG,CACH,CAAA,EAAA,QAAA,CAAA,EAAb,YAAa,CAAA,CAAA,CAAA,EAAA,GACvB,OADuB,CACf,UADe,CACJ,CADI,CAAA,CAAA,GAAA,SAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/utils/runParallel/ps.d.ts
|
|
2
|
+
type ProcessList = [number, number][];
|
|
3
|
+
type ProcessListCallback = (err: Error | null, list?: ProcessList) => void;
|
|
4
|
+
/**
|
|
5
|
+
* Gets the list of all the pids of the system through the ps command.
|
|
6
|
+
* @param callback Callback function with error and process list.
|
|
7
|
+
*/
|
|
8
|
+
declare const ps: (callback: ProcessListCallback) => void;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ps };
|
|
11
|
+
//# sourceMappingURL=ps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ps.d.ts","names":[],"sources":["../../../../src/utils/runParallel/ps.ts"],"sourcesContent":[],"mappings":";KAGK,WAAA;KACA,mBAAA,GADW,CAAA,GAAA,EACiB,KADjB,GAAA,IAAA,EAAA,IAAA,CAAA,EACsC,WADtC,EAAA,GAAA,IAAA;AAAA;AAOhB;;;cAAa,eAAgB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/utils/runParallel/runTask.d.ts
|
|
2
|
+
interface TaskResult {
|
|
3
|
+
name: string;
|
|
4
|
+
code: number | null;
|
|
5
|
+
signal?: string | null;
|
|
6
|
+
}
|
|
7
|
+
interface RunTaskOptions {
|
|
8
|
+
stdout: NodeJS.WritableStream;
|
|
9
|
+
stderr?: NodeJS.WritableStream;
|
|
10
|
+
aggregateOutput?: boolean;
|
|
11
|
+
continueOnError?: boolean;
|
|
12
|
+
race?: boolean;
|
|
13
|
+
maxParallel?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Run npm-scripts of given names in parallel.
|
|
17
|
+
*
|
|
18
|
+
* If a npm-script exited with a non-zero code, this aborts other all npm-scripts.
|
|
19
|
+
*
|
|
20
|
+
* Note: This is a simplified version for our use case.
|
|
21
|
+
* The full implementation would require the actual runTask function from npm-run-all.
|
|
22
|
+
*/
|
|
23
|
+
declare const runTasks: (tasks: string[], options: RunTaskOptions) => Promise<TaskResult[]>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { runTasks };
|
|
26
|
+
//# sourceMappingURL=runTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runTask.d.ts","names":[],"sources":["../../../../src/utils/runParallel/runTask.ts"],"sourcesContent":[],"mappings":";UA8EU,UAAA;EAAA,IAAA,EAAA,MAAA;EAWA,IAAA,EAAA,MAAA,GAAA,IAAc;EAyBX,MAAA,CAAA,EAAA,MAyJZ,GAAA,IAAA;;UAlLS,cAAA,CA4BC;EAAR,MAAA,EA3BO,MAAA,CAAO,cA2Bd;EAAO,MAAA,CAAA,EA1BC,MAAA,CAAO,cA0BR;;;;;;;;;;;;;;cAHG,qCAEF,mBACR,QAAQ"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChildProcess, SpawnOptions } from "node:child_process";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/runParallel/spawnPosix.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Launches a new process with the given command.
|
|
7
|
+
* This is almost same as `child_process.spawn`.
|
|
8
|
+
*
|
|
9
|
+
* This returns a `ChildProcess` instance.
|
|
10
|
+
* `kill` method of the instance kills the new process and its sub processes.
|
|
11
|
+
*
|
|
12
|
+
* @param command - The command to run.
|
|
13
|
+
* @param args - List of string arguments.
|
|
14
|
+
* @param options - Options.
|
|
15
|
+
* @returns A ChildProcess instance of new process.
|
|
16
|
+
* @private
|
|
17
|
+
*/
|
|
18
|
+
declare const spawnPosix: (command: string, args: string[], options: SpawnOptions) => ChildProcess;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { spawnPosix };
|
|
21
|
+
//# sourceMappingURL=spawnPosix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spawnPosix.d.ts","names":[],"sources":["../../../../src/utils/runParallel/spawnPosix.ts"],"sourcesContent":[],"mappings":";;;;;AAkFA;;;;;;;;;;;;cAAa,uDAGF,iBACR"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChildProcess, SpawnOptions } from "node:child_process";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/runParallel/spawnWin32.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Launches a new process with the given command.
|
|
7
|
+
* This is almost same as `child_process.spawn`.
|
|
8
|
+
*
|
|
9
|
+
* This returns a `ChildProcess` instance.
|
|
10
|
+
* `kill` method of the instance kills the new process and its sub processes forcibly.
|
|
11
|
+
*
|
|
12
|
+
* @param command - The command to run.
|
|
13
|
+
* @param args - List of string arguments.
|
|
14
|
+
* @param options - Options.
|
|
15
|
+
* @returns A ChildProcess instance of new process.
|
|
16
|
+
* @private
|
|
17
|
+
*/
|
|
18
|
+
declare const spawnWin32: (command: string, args: string[], options: SpawnOptions) => ChildProcess;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { spawnWin32 };
|
|
21
|
+
//# sourceMappingURL=spawnWin32.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spawnWin32.d.ts","names":[],"sources":["../../../../src/utils/runParallel/spawnWin32.ts"],"sourcesContent":[],"mappings":";;;;;AA+CA;;;;;;;;;;;;cAAa,uDAGF,iBACR"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/utils/runParallel/wmic.d.ts
|
|
2
|
+
type ProcessList = [number, number][];
|
|
3
|
+
type ProcessListCallback = (err: Error | null, list?: ProcessList) => void;
|
|
4
|
+
/**
|
|
5
|
+
* Gets the list of all the pids of the system through the wmic command.
|
|
6
|
+
* @param callback Callback function with error and process list.
|
|
7
|
+
*/
|
|
8
|
+
declare const wmic: (callback: ProcessListCallback) => void;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { wmic };
|
|
11
|
+
//# sourceMappingURL=wmic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wmic.d.ts","names":[],"sources":["../../../../src/utils/runParallel/wmic.ts"],"sourcesContent":[],"mappings":";KAIK,WAAA;KACA,mBAAA,GADW,CAAA,GAAA,EACiB,KADjB,GAAA,IAAA,EAAA,IAAA,CAAA,EACsC,WADtC,EAAA,GAAA,IAAA;AAAA;AAOhB;;;cAAa,iBAAkB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/chokidar",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.",
|
|
6
6
|
"keywords": [
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@intlayer/api": "7.0.
|
|
75
|
-
"@intlayer/config": "7.0.
|
|
76
|
-
"@intlayer/core": "7.0.
|
|
77
|
-
"@intlayer/dictionaries-entry": "7.0.
|
|
78
|
-
"@intlayer/remote-dictionaries-entry": "7.0.
|
|
79
|
-
"@intlayer/types": "7.0.
|
|
80
|
-
"@intlayer/unmerged-dictionaries-entry": "7.0.
|
|
74
|
+
"@intlayer/api": "7.0.4",
|
|
75
|
+
"@intlayer/config": "7.0.4",
|
|
76
|
+
"@intlayer/core": "7.0.4",
|
|
77
|
+
"@intlayer/dictionaries-entry": "7.0.4",
|
|
78
|
+
"@intlayer/remote-dictionaries-entry": "7.0.4",
|
|
79
|
+
"@intlayer/types": "7.0.4",
|
|
80
|
+
"@intlayer/unmerged-dictionaries-entry": "7.0.4",
|
|
81
81
|
"chokidar": "3.6.0",
|
|
82
82
|
"crypto-js": "4.2.0",
|
|
83
83
|
"deep-equal": "2.2.3",
|
|
@@ -90,22 +90,22 @@
|
|
|
90
90
|
"@types/crypto-js": "4.2.2",
|
|
91
91
|
"@types/deep-equal": "1.0.4",
|
|
92
92
|
"@types/node": "24.9.2",
|
|
93
|
-
"@utils/ts-config": "7.0.
|
|
94
|
-
"@utils/ts-config-types": "7.0.
|
|
95
|
-
"@utils/tsdown-config": "7.0.
|
|
93
|
+
"@utils/ts-config": "7.0.4",
|
|
94
|
+
"@utils/ts-config-types": "7.0.4",
|
|
95
|
+
"@utils/tsdown-config": "7.0.4",
|
|
96
96
|
"rimraf": "6.0.1",
|
|
97
97
|
"tsdown": "0.15.11",
|
|
98
98
|
"typescript": "5.9.3",
|
|
99
99
|
"vitest": "4.0.5"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
|
-
"@intlayer/api": "7.0.
|
|
103
|
-
"@intlayer/config": "7.0.
|
|
104
|
-
"@intlayer/core": "7.0.
|
|
105
|
-
"@intlayer/dictionaries-entry": "7.0.
|
|
106
|
-
"@intlayer/remote-dictionaries-entry": "7.0.
|
|
107
|
-
"@intlayer/types": "7.0.
|
|
108
|
-
"@intlayer/unmerged-dictionaries-entry": "7.0.
|
|
102
|
+
"@intlayer/api": "7.0.4",
|
|
103
|
+
"@intlayer/config": "7.0.4",
|
|
104
|
+
"@intlayer/core": "7.0.4",
|
|
105
|
+
"@intlayer/dictionaries-entry": "7.0.4",
|
|
106
|
+
"@intlayer/remote-dictionaries-entry": "7.0.4",
|
|
107
|
+
"@intlayer/types": "7.0.4",
|
|
108
|
+
"@intlayer/unmerged-dictionaries-entry": "7.0.4",
|
|
109
109
|
"fast-glob": "3.3.3"
|
|
110
110
|
},
|
|
111
111
|
"engines": {
|