@intlayer/chokidar 7.0.3-canary.1 → 7.0.4-canary.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/cjs/cleanOutputDir.cjs +3 -3
- package/dist/cjs/cleanOutputDir.cjs.map +1 -1
- package/dist/cjs/createType/createType.cjs +1 -1
- package/dist/cjs/createType/createType.cjs.map +1 -1
- package/dist/cjs/fetchDistantDictionaries.cjs +2 -2
- package/dist/cjs/index.cjs +4 -2
- package/dist/cjs/loadDictionaries/getIntlayerBundle.cjs +1 -1
- package/dist/cjs/loadDictionaries/getIntlayerBundle.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs +1 -1
- package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/loadDictionaries.cjs +12 -12
- package/dist/cjs/loadDictionaries/loadDictionaries.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs +2 -2
- package/dist/cjs/loadDictionaries/log.cjs +14 -12
- package/dist/cjs/loadDictionaries/log.cjs.map +1 -1
- 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/cjs/writeContentDeclaration/detectFormatCommand.cjs +4 -3
- package/dist/cjs/writeContentDeclaration/detectFormatCommand.cjs.map +1 -1
- package/dist/esm/cleanOutputDir.mjs +1 -1
- package/dist/esm/cleanOutputDir.mjs.map +1 -1
- package/dist/esm/createType/createType.mjs +2 -2
- package/dist/esm/createType/createType.mjs.map +1 -1
- package/dist/esm/fetchDistantDictionaries.mjs +1 -1
- package/dist/esm/index.mjs +3 -2
- package/dist/esm/loadDictionaries/getIntlayerBundle.mjs +2 -2
- package/dist/esm/loadDictionaries/getIntlayerBundle.mjs.map +1 -1
- package/dist/esm/loadDictionaries/loadContentDeclaration.mjs +2 -2
- package/dist/esm/loadDictionaries/loadContentDeclaration.mjs.map +1 -1
- package/dist/esm/loadDictionaries/loadDictionaries.mjs +1 -1
- package/dist/esm/loadDictionaries/loadDictionaries.mjs.map +1 -1
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs +1 -1
- package/dist/esm/loadDictionaries/log.mjs +3 -2
- package/dist/esm/loadDictionaries/log.mjs.map +1 -1
- 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/esm/writeContentDeclaration/detectFormatCommand.mjs +5 -4
- package/dist/esm/writeContentDeclaration/detectFormatCommand.mjs.map +1 -1
- 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/index.d.ts +3 -2
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -2
- package/dist/types/loadDictionaries/log.d.ts.map +1 -1
- package/dist/types/utils/getFormatFromExtension.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 +21 -21
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LocalizedDictionaryOutput, LocalizedDictionaryResult } from "./writeDynamicDictionary.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _intlayer_types0 from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/buildIntlayerDictionary/writeFetchDictionary.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* This function generates the content of the dictionary list file
|
|
7
7
|
*/
|
|
8
|
-
declare const generateDictionaryEntryPoint: (localedDictionariesPathsRecord: LocalizedDictionaryResult, format?: "cjs" | "esm", configuration?:
|
|
8
|
+
declare const generateDictionaryEntryPoint: (localedDictionariesPathsRecord: LocalizedDictionaryResult, format?: "cjs" | "esm", configuration?: _intlayer_types0.IntlayerConfig) => string;
|
|
9
9
|
/**
|
|
10
10
|
* Write the localized dictionaries to the dictionariesDir
|
|
11
11
|
* @param mergedDictionaries - The merged dictionaries
|
|
@@ -22,7 +22,7 @@ declare const generateDictionaryEntryPoint: (localedDictionariesPathsRecord: Loc
|
|
|
22
22
|
* // { key: 'home', content: { ... } },
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
declare const writeFetchDictionary: (dynamicDictionaries: LocalizedDictionaryOutput, configuration?:
|
|
25
|
+
declare const writeFetchDictionary: (dynamicDictionaries: LocalizedDictionaryOutput, configuration?: _intlayer_types0.IntlayerConfig, formats?: ("cjs" | "esm")[]) => Promise<LocalizedDictionaryOutput>;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { generateDictionaryEntryPoint, writeFetchDictionary };
|
|
28
28
|
//# sourceMappingURL=writeFetchDictionary.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UnmergedDictionaryOutput } from "./writeUnmergedDictionary.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _intlayer_types6 from "@intlayer/types";
|
|
3
3
|
import { Dictionary } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/buildIntlayerDictionary/writeMergedDictionary.d.ts
|
|
@@ -24,7 +24,7 @@ type MergedDictionaryOutput = Record<string, MergedDictionaryResult>;
|
|
|
24
24
|
* // { key: 'home', content: { ... } },
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
declare const writeMergedDictionaries: (groupedDictionaries: UnmergedDictionaryOutput, configuration?:
|
|
27
|
+
declare const writeMergedDictionaries: (groupedDictionaries: UnmergedDictionaryOutput, configuration?: _intlayer_types6.IntlayerConfig) => Promise<MergedDictionaryOutput>;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { MergedDictionaryOutput, MergedDictionaryResult, writeMergedDictionaries };
|
|
30
30
|
//# sourceMappingURL=writeMergedDictionary.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types4 from "@intlayer/types";
|
|
2
2
|
import { Dictionary } from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/buildIntlayerDictionary/writeRemoteDictionary.d.ts
|
|
@@ -19,7 +19,7 @@ import { Dictionary } from "@intlayer/types";
|
|
|
19
19
|
* // { key: 'home', content: { ... } },
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
declare const writeRemoteDictionary: (remoteDictionaries: Dictionary[], configuration?:
|
|
22
|
+
declare const writeRemoteDictionary: (remoteDictionaries: Dictionary[], configuration?: _intlayer_types4.IntlayerConfig) => Promise<Dictionary[]>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { writeRemoteDictionary };
|
|
25
25
|
//# sourceMappingURL=writeRemoteDictionary.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types5 from "@intlayer/types";
|
|
2
2
|
|
|
3
3
|
//#region src/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* This function generates a list of dictionaries in the main directory
|
|
6
6
|
*/
|
|
7
|
-
declare const createDictionaryEntryPoint: (configuration?:
|
|
7
|
+
declare const createDictionaryEntryPoint: (configuration?: _intlayer_types5.IntlayerConfig, formats?: ("cjs" | "esm")[]) => Promise<void>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { createDictionaryEntryPoint };
|
|
10
10
|
//# sourceMappingURL=createDictionaryEntryPoint.d.ts.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ import { getGlobalLimiter, getTaskLimiter, parallelizeGlobal } from "./utils/par
|
|
|
35
35
|
import { reduceObjectFormat } from "./utils/reduceObjectFormat.js";
|
|
36
36
|
import { resolveObjectPromises } from "./utils/resolveObjectPromises.js";
|
|
37
37
|
import { runOnce } from "./utils/runOnce.js";
|
|
38
|
-
import { ParallelHandle, runParallel } from "./utils/runParallel.js";
|
|
38
|
+
import { ParallelHandle, runParallel } from "./utils/runParallel/index.js";
|
|
39
39
|
import { sortAlphabetically } from "./utils/sortAlphabetically.js";
|
|
40
40
|
import { splitTextByLines } from "./utils/splitTextByLine.js";
|
|
41
41
|
import { verifyIdenticObjectFormat } from "./utils/verifyIdenticObjectFormat.js";
|
|
@@ -45,5 +45,6 @@ import { DictionaryStatus } from "./writeContentDeclaration/dictionaryStatus.js"
|
|
|
45
45
|
import { transformJSFile } from "./writeContentDeclaration/transformJSFile.js";
|
|
46
46
|
import { writeContentDeclaration } from "./writeContentDeclaration/writeContentDeclaration.js";
|
|
47
47
|
import { writeJSFile } from "./writeContentDeclaration/writeJSFile.js";
|
|
48
|
+
import { detectFormatCommand } from "./writeContentDeclaration/detectFormatCommand.js";
|
|
48
49
|
import { processContentDeclarationContent } from "./writeContentDeclaration/processContentDeclarationContent.js";
|
|
49
|
-
export { type DictionaryStatus, type DiffMode, type Extension, type Format, type JSONObject, type JsonChunk, type ListGitFilesOptions, type ListGitLinesOptions, type ParallelHandle, assembleJSON, buildAndWatchIntlayer, buildDictionary, chunkJSON, cleanOutputDir, createDictionaryEntryPoint, createModuleAugmentation, createTypes, detectExportedComponentName, fetchDistantDictionaries, formatLocale, formatPath, generateDictionaryListContent, getBuiltDictionariesPath, getBuiltDynamicDictionariesPath, getBuiltFetchDictionariesPath, getBuiltRemoteDictionariesPath, getBuiltUnmergedDictionariesPath, getChunk, getContentDeclarationFileTemplate, getExtensionFromFormat, getFileHash, getFormatFromExtension, getGlobalLimiter, getTaskLimiter, handleAdditionalContentDeclarationFile, handleContentDeclarationFileChange, handleUnlinkedContentDeclarationFile, isInvalidDictionary, kebabCaseToCamelCase, listDictionaries, listGitFiles, listGitLines, loadContentDeclarations, loadDictionaries, loadLocalDictionaries, loadRemoteDictionaries, pLimit, parallelize, parallelizeGlobal, prepareIntlayer, processContentDeclarationContent, reconstructFromSingleChunk, reduceDictionaryContent, reduceObjectFormat, resolveObjectPromises, runOnce, runParallel, sortAlphabetically, splitTextByLines, transformJSFile, verifyIdenticObjectFormat, watch, writeContentDeclaration, writeJSFile };
|
|
50
|
+
export { type DictionaryStatus, type DiffMode, type Extension, type Format, type JSONObject, type JsonChunk, type ListGitFilesOptions, type ListGitLinesOptions, type ParallelHandle, assembleJSON, buildAndWatchIntlayer, buildDictionary, chunkJSON, cleanOutputDir, createDictionaryEntryPoint, createModuleAugmentation, createTypes, detectExportedComponentName, detectFormatCommand, fetchDistantDictionaries, formatLocale, formatPath, generateDictionaryListContent, getBuiltDictionariesPath, getBuiltDynamicDictionariesPath, getBuiltFetchDictionariesPath, getBuiltRemoteDictionariesPath, getBuiltUnmergedDictionariesPath, getChunk, getContentDeclarationFileTemplate, getExtensionFromFormat, getFileHash, getFormatFromExtension, getGlobalLimiter, getTaskLimiter, handleAdditionalContentDeclarationFile, handleContentDeclarationFileChange, handleUnlinkedContentDeclarationFile, isInvalidDictionary, kebabCaseToCamelCase, listDictionaries, listGitFiles, listGitLines, loadContentDeclarations, loadDictionaries, loadLocalDictionaries, loadRemoteDictionaries, pLimit, parallelize, parallelizeGlobal, prepareIntlayer, processContentDeclarationContent, reconstructFromSingleChunk, reduceDictionaryContent, reduceObjectFormat, resolveObjectPromises, runOnce, runParallel, sortAlphabetically, splitTextByLines, transformJSFile, verifyIdenticObjectFormat, watch, writeContentDeclaration, writeJSFile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadContentDeclaration.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadContentDeclaration.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"loadContentDeclaration.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadContentDeclaration.ts"],"sourcesContent":[],"mappings":";;;;cAiBa,8CACS,eAAe,4BACpB,mBACd;cAUU,+EAEI,0CACW,kCACzB,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadDictionaries.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"loadDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadDictionaries.ts"],"sourcesContent":[],"mappings":";;;KAaY,kBAAA;;EAAA,IAAA,EAAA,OAAA,GAAA,QAAkB;EA6IjB,MAAA,EAAA,SAAA,GAmGZ,UAAA,GAAA,SAAA,GAAA,OAAA,GAAA,UAAA,GAAA,OAAA,GAAA,UAAA,GAAA,OAAA;EAjGgB,KAAA,CAAA,EAAA,MAAA;CAEI;AACC,cALT,gBAKS,EAAA,CAAA,wBAAA,EAAA,MAAA,EAAA,GAAA,MAAA,EAAA,aAAA,EAHL,cAGK,EAAA,GAFnB,OAEmB,CAAA;EACA,iBAAA,EAFD,UAEC,EAAA;EAHnB,kBAAA,EAEmB,UAFnB,EAAA;EAAO,kBAAA,EAGY,UAHZ,EAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DictionariesStatus } from "./loadDictionaries.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _intlayer_types8 from "@intlayer/types";
|
|
3
3
|
import { Dictionary } from "@intlayer/types";
|
|
4
4
|
import { DictionaryAPI } from "@intlayer/backend";
|
|
5
5
|
|
|
6
6
|
//#region src/loadDictionaries/loadRemoteDictionaries.d.ts
|
|
7
7
|
declare const formatDistantDictionaries: (dictionaries: (DictionaryAPI | Dictionary)[]) => Dictionary[];
|
|
8
|
-
declare const loadRemoteDictionaries: (configuration?:
|
|
8
|
+
declare const loadRemoteDictionaries: (configuration?: _intlayer_types8.IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void, options?: {
|
|
9
9
|
onStartRemoteCheck?: () => void;
|
|
10
10
|
onStopRemoteCheck?: () => void;
|
|
11
11
|
onError?: (error: Error) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","names":[],"sources":["../../../src/loadDictionaries/log.ts"],"sourcesContent":[],"mappings":";;;cAWa,kBAAA;;EAAA,QAAA,YAAA;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"log.d.ts","names":[],"sources":["../../../src/loadDictionaries/log.ts"],"sourcesContent":[],"mappings":";;;cAWa,kBAAA;;EAAA,QAAA,YAAA;;;;;;;;;;;;;;sBAgCS;;;;2BA8Ca"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFormatFromExtension.d.ts","names":[],"sources":["../../../src/utils/getFormatFromExtension.ts"],"sourcesContent":[],"mappings":";KAAY,MAAA;AAAA,KACA,SAAA,GADM,KAAA,GAAA,MAAA,GAAA,KAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,MAAA,GAAA,OAAA,GAAA,OAAA,GAAA,QAAA;AACN,cAYC,sBAZQ,EAAA,CAAA,SAAA,EAY6B,SAZ7B,EAAA,GAYyC,MAZzC;AAYR,cAkBA,sBAlBqC,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"getFormatFromExtension.d.ts","names":[],"sources":["../../../src/utils/getFormatFromExtension.ts"],"sourcesContent":[],"mappings":";KAAY,MAAA;AAAA,KACA,SAAA,GADM,KAAA,GAAA,MAAA,GAAA,KAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,MAAA,GAAA,OAAA,GAAA,OAAA,GAAA,QAAA;AACN,cAYC,sBAZQ,EAAA,CAAA,SAAA,EAY6B,SAZ7B,EAAA,GAYyC,MAZzC;AAYR,cAkBA,sBAlBqC,EAAA,CAAA,MAAA,EAkBH,MAF9C,EAAA,GAEuD,SAFvD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpawnOptions } from "node:child_process";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/runParallel/bin.d.ts
|
|
4
|
+
type BinCallback = (err: Error | null, stdout?: string, code?: number) => void;
|
|
5
|
+
/**
|
|
6
|
+
* Spawn a binary and read its stdout.
|
|
7
|
+
* @param cmd The name of the binary to spawn.
|
|
8
|
+
* @param args The arguments for the binary.
|
|
9
|
+
* @param options Optional option for the spawn function.
|
|
10
|
+
* @param done Callback function.
|
|
11
|
+
*/
|
|
12
|
+
declare const run: (cmd: string, args: string[], options: SpawnOptions | BinCallback | undefined, done?: BinCallback) => void;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { run };
|
|
15
|
+
//# sourceMappingURL=bin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.d.ts","names":[],"sources":["../../../../src/utils/runParallel/bin.ts"],"sourcesContent":[],"mappings":";;;KAGK,WAAA,SAAoB;;AAFqC;AAsB9D;;;;;cAAa,4CAGF,eAAe,gCACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","names":[],"sources":["../../../../src/utils/runParallel/bootstrap.ts"],"sourcesContent":[],"mappings":";cAIa,qCAAoC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/utils/runParallel/index.d.ts
|
|
2
|
+
type ParallelHandle = {
|
|
3
|
+
kill: () => void;
|
|
4
|
+
result: Promise<any>;
|
|
5
|
+
commandText: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Start a cross-platform parallel process using npm-run-all approach.
|
|
9
|
+
* Accepts either a single string (e.g., 'next start') or an array of tokens (e.g., ['next', 'start']).
|
|
10
|
+
*/
|
|
11
|
+
declare const runParallel: (proc?: string | string[]) => ParallelHandle;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ParallelHandle, runParallel };
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/utils/runParallel/index.ts"],"sourcesContent":[],"mappings":";KAIY,cAAA;EAAA,IAAA,EAAA,GAAA,GAAA,IAAA;EAUC,MAAA,EARH,OAsIT,CAAA,GAAA,CAAA;;;;;;;cA9HY,2CAA0C"}
|
|
@@ -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-canary.0",
|
|
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": "
|
|
75
|
-
"@intlayer/config": "
|
|
76
|
-
"@intlayer/core": "
|
|
77
|
-
"@intlayer/dictionaries-entry": "
|
|
78
|
-
"@intlayer/remote-dictionaries-entry": "
|
|
79
|
-
"@intlayer/types": "
|
|
80
|
-
"@intlayer/unmerged-dictionaries-entry": "
|
|
74
|
+
"@intlayer/api": "workspace:*",
|
|
75
|
+
"@intlayer/config": "workspace:*",
|
|
76
|
+
"@intlayer/core": "workspace:*",
|
|
77
|
+
"@intlayer/dictionaries-entry": "workspace:*",
|
|
78
|
+
"@intlayer/remote-dictionaries-entry": "workspace:*",
|
|
79
|
+
"@intlayer/types": "workspace:*",
|
|
80
|
+
"@intlayer/unmerged-dictionaries-entry": "workspace:*",
|
|
81
81
|
"chokidar": "3.6.0",
|
|
82
82
|
"crypto-js": "4.2.0",
|
|
83
83
|
"deep-equal": "2.2.3",
|
|
@@ -89,23 +89,23 @@
|
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@types/crypto-js": "4.2.2",
|
|
91
91
|
"@types/deep-equal": "1.0.4",
|
|
92
|
-
"@types/node": "24.9.
|
|
93
|
-
"@utils/ts-config": "
|
|
94
|
-
"@utils/ts-config-types": "
|
|
95
|
-
"@utils/tsdown-config": "
|
|
92
|
+
"@types/node": "24.9.2",
|
|
93
|
+
"@utils/ts-config": "workspace:*",
|
|
94
|
+
"@utils/ts-config-types": "workspace:*",
|
|
95
|
+
"@utils/tsdown-config": "workspace:*",
|
|
96
96
|
"rimraf": "6.0.1",
|
|
97
|
-
"tsdown": "0.15.
|
|
97
|
+
"tsdown": "0.15.11",
|
|
98
98
|
"typescript": "5.9.3",
|
|
99
|
-
"vitest": "4.0.
|
|
99
|
+
"vitest": "4.0.5"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
|
-
"@intlayer/api": "
|
|
103
|
-
"@intlayer/config": "
|
|
104
|
-
"@intlayer/core": "
|
|
105
|
-
"@intlayer/dictionaries-entry": "
|
|
106
|
-
"@intlayer/remote-dictionaries-entry": "
|
|
107
|
-
"@intlayer/types": "
|
|
108
|
-
"@intlayer/unmerged-dictionaries-entry": "
|
|
102
|
+
"@intlayer/api": "workspace:*",
|
|
103
|
+
"@intlayer/config": "workspace:*",
|
|
104
|
+
"@intlayer/core": "workspace:*",
|
|
105
|
+
"@intlayer/dictionaries-entry": "workspace:*",
|
|
106
|
+
"@intlayer/remote-dictionaries-entry": "workspace:*",
|
|
107
|
+
"@intlayer/types": "workspace:*",
|
|
108
|
+
"@intlayer/unmerged-dictionaries-entry": "workspace:*",
|
|
109
109
|
"fast-glob": "3.3.3"
|
|
110
110
|
},
|
|
111
111
|
"engines": {
|