@intlayer/chokidar 7.2.2 → 7.3.0-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/README.md +2 -0
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs +5 -4
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs.map +1 -1
- package/dist/cjs/index.cjs +12 -6
- package/dist/cjs/listDictionariesPath.cjs +9 -0
- package/dist/cjs/listDictionariesPath.cjs.map +1 -1
- package/dist/cjs/prepareIntlayer.cjs +9 -2
- package/dist/cjs/prepareIntlayer.cjs.map +1 -1
- package/dist/cjs/transformFiles/extractDictionaryKey.cjs +16 -0
- package/dist/cjs/transformFiles/extractDictionaryKey.cjs.map +1 -0
- package/dist/cjs/transformFiles/index.cjs +6 -0
- package/dist/cjs/transformFiles/transformFiles.cjs +218 -0
- package/dist/cjs/transformFiles/transformFiles.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/detectFormatCommand.cjs +16 -14
- package/dist/cjs/writeContentDeclaration/detectFormatCommand.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs +1 -1
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs +1 -1
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs +5 -4
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs.map +1 -1
- package/dist/esm/index.mjs +10 -8
- package/dist/esm/listDictionariesPath.mjs +9 -1
- package/dist/esm/listDictionariesPath.mjs.map +1 -1
- package/dist/esm/prepareIntlayer.mjs +10 -3
- package/dist/esm/prepareIntlayer.mjs.map +1 -1
- package/dist/esm/transformFiles/extractDictionaryKey.mjs +15 -0
- package/dist/esm/transformFiles/extractDictionaryKey.mjs.map +1 -0
- package/dist/esm/transformFiles/index.mjs +4 -0
- package/dist/esm/transformFiles/transformFiles.mjs +215 -0
- package/dist/esm/transformFiles/transformFiles.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/detectFormatCommand.mjs +16 -14
- package/dist/esm/writeContentDeclaration/detectFormatCommand.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs +1 -1
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs +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/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +2 -2
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -2
- package/dist/types/listDictionariesPath.d.ts +6 -1
- package/dist/types/listDictionariesPath.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -2
- package/dist/types/prepareIntlayer.d.ts.map +1 -1
- package/dist/types/transformFiles/extractDictionaryKey.d.ts +5 -0
- package/dist/types/transformFiles/extractDictionaryKey.d.ts.map +1 -0
- package/dist/types/transformFiles/index.d.ts +3 -0
- package/dist/types/transformFiles/transformFiles.d.ts +16 -0
- package/dist/types/transformFiles/transformFiles.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
- package/package.json +19 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getContentDeclarationFileTemplate } from "../getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs";
|
|
2
|
-
import { getFormatFromExtension } from "../utils/getFormatFromExtension.mjs";
|
|
3
2
|
import { transformJSFile } from "./transformJSFile.mjs";
|
|
3
|
+
import { getFormatFromExtension } from "../utils/getFormatFromExtension.mjs";
|
|
4
4
|
import { detectFormatCommand } from "./detectFormatCommand.mjs";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
import { readFile, writeFile } from "node:fs/promises";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MergedDictionaryOutput } from "./writeMergedDictionary.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _intlayer_types2 from "@intlayer/types";
|
|
3
3
|
import { Dictionary, Locale } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/buildIntlayerDictionary/writeDynamicDictionary.d.ts
|
|
@@ -12,7 +12,7 @@ type LocalizedDictionaryOutput = Record<string, LocalizedDictionaryResult>;
|
|
|
12
12
|
/**
|
|
13
13
|
* This function generates the content of the dictionary list file
|
|
14
14
|
*/
|
|
15
|
-
declare const generateDictionaryEntryPoint: (localizedDictionariesPathsRecord: LocalizedDictionaryResult, format?: "cjs" | "esm", configuration?:
|
|
15
|
+
declare const generateDictionaryEntryPoint: (localizedDictionariesPathsRecord: LocalizedDictionaryResult, format?: "cjs" | "esm", configuration?: _intlayer_types2.IntlayerConfig) => string;
|
|
16
16
|
/**
|
|
17
17
|
* Write the localized dictionaries to the dictionariesDir
|
|
18
18
|
* @param mergedDictionaries - The merged dictionaries
|
|
@@ -29,7 +29,7 @@ declare const generateDictionaryEntryPoint: (localizedDictionariesPathsRecord: L
|
|
|
29
29
|
* // { key: 'home', content: { ... } },
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare const writeDynamicDictionary: (mergedDictionaries: MergedDictionaryOutput, configuration?:
|
|
32
|
+
declare const writeDynamicDictionary: (mergedDictionaries: MergedDictionaryOutput, configuration?: _intlayer_types2.IntlayerConfig, formats?: ("cjs" | "esm")[]) => Promise<LocalizedDictionaryOutput>;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { DictionaryResult, LocalizedDictionaryOutput, LocalizedDictionaryResult, generateDictionaryEntryPoint, writeDynamicDictionary };
|
|
35
35
|
//# sourceMappingURL=writeDynamicDictionary.d.ts.map
|
|
@@ -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_types4 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_types4.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_types5 from "@intlayer/types";
|
|
2
2
|
import { Dictionary } from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/buildIntlayerDictionary/writeRemoteDictionary.d.ts
|
|
@@ -23,7 +23,7 @@ type RemoteDictionaryOutput = Record<string, RemoteDictionaryResult>;
|
|
|
23
23
|
* // { key: 'home', content: { ... } },
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
declare const writeRemoteDictionary: (remoteDictionaries: Dictionary[], configuration?:
|
|
26
|
+
declare const writeRemoteDictionary: (remoteDictionaries: Dictionary[], configuration?: _intlayer_types5.IntlayerConfig) => Promise<RemoteDictionaryOutput>;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { RemoteDictionaryOutput, RemoteDictionaryResult, writeRemoteDictionary };
|
|
29
29
|
//# sourceMappingURL=writeRemoteDictionary.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types7 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_types7.IntlayerConfig, formats?: ("cjs" | "esm")[]) => Promise<void>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { createDictionaryEntryPoint };
|
|
10
10
|
//# sourceMappingURL=createDictionaryEntryPoint.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types6 from "@intlayer/types";
|
|
2
2
|
|
|
3
3
|
//#region src/createDictionaryEntryPoint/generateDictionaryListContent.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* This function generates the content of the dictionary list file
|
|
6
6
|
*/
|
|
7
|
-
declare const generateDictionaryListContent: (dictionaries: string[], functionName: string, format?: "cjs" | "esm", configuration?:
|
|
7
|
+
declare const generateDictionaryListContent: (dictionaries: string[], functionName: string, format?: "cjs" | "esm", configuration?: _intlayer_types6.IntlayerConfig) => string;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { generateDictionaryListContent };
|
|
10
10
|
//# sourceMappingURL=generateDictionaryListContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateDictionaryListContent.d.ts","names":[],"sources":["../../../src/createDictionaryEntryPoint/generateDictionaryListContent.ts"],"sourcesContent":[],"mappings":";;;;;;AAOa,cAAA,6BA+CZ,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"generateDictionaryListContent.d.ts","names":[],"sources":["../../../src/createDictionaryEntryPoint/generateDictionaryListContent.ts"],"sourcesContent":[],"mappings":";;;;;;AAOa,cAAA,6BA+CZ,EAAA,CAAA,YA3CC,EAAA,MAAA,EAAA,EAAA,YAAkC,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,KAAA,GAAA,KAAA,EAAA,aAAA,CAAA,EA2CnC,gBAAA,CA3CC,cAAkC,EAAA,GAAA,MAAA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -23,10 +23,13 @@ import { getContentDeclarationFileTemplate } from "./getContentDeclarationFileTe
|
|
|
23
23
|
import { handleAdditionalContentDeclarationFile } from "./handleAdditionalContentDeclarationFile.js";
|
|
24
24
|
import { handleContentDeclarationFileChange } from "./handleContentDeclarationFileChange.js";
|
|
25
25
|
import { handleUnlinkedContentDeclarationFile } from "./handleUnlinkedContentDeclarationFile.js";
|
|
26
|
-
import { listDictionaries } from "./listDictionariesPath.js";
|
|
26
|
+
import { listDictionaries, listDictionariesWithStats } from "./listDictionariesPath.js";
|
|
27
27
|
import { DiffMode, ListGitFilesOptions, ListGitLinesOptions, listGitFiles, listGitLines } from "./listGitFiles.js";
|
|
28
28
|
import { prepareIntlayer } from "./prepareIntlayer.js";
|
|
29
29
|
import { reduceDictionaryContent } from "./reduceDictionaryContent/reduceDictionaryContent.js";
|
|
30
|
+
import { extractDictionaryKey } from "./transformFiles/extractDictionaryKey.js";
|
|
31
|
+
import { PackageName, extractIntlayer, transformFiles } from "./transformFiles/transformFiles.js";
|
|
32
|
+
import "./transformFiles/index.js";
|
|
30
33
|
import { JSONObject, JsonChunk, assembleJSON, chunkJSON, reconstructFromSingleChunk } from "./utils/chunkJSON.js";
|
|
31
34
|
import { formatLocale, formatPath } from "./utils/formatter.js";
|
|
32
35
|
import { getChunk } from "./utils/getChunk.js";
|
|
@@ -49,4 +52,4 @@ import { writeContentDeclaration } from "./writeContentDeclaration/writeContentD
|
|
|
49
52
|
import { writeJSFile } from "./writeContentDeclaration/writeJSFile.js";
|
|
50
53
|
import "./writeContentDeclaration/index.js";
|
|
51
54
|
import { detectFormatCommand } from "./writeContentDeclaration/detectFormatCommand.js";
|
|
52
|
-
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, listDictionaries, listGitFiles, listGitLines, loadContentDeclarations, loadDictionaries, loadLocalDictionaries, loadRemoteDictionaries, pLimit, parallelize, parallelizeGlobal, prepareIntlayer, reconstructFromSingleChunk, reduceDictionaryContent, reduceObjectFormat, resolveObjectPromises, runOnce, runParallel, sortAlphabetically, splitTextByLines, transformJSFile, verifyIdenticObjectFormat, watch, writeContentDeclaration, writeJSFile };
|
|
55
|
+
export { type DictionaryStatus, type DiffMode, type Extension, type Format, type JSONObject, type JsonChunk, type ListGitFilesOptions, type ListGitLinesOptions, type PackageName, type ParallelHandle, assembleJSON, buildAndWatchIntlayer, buildDictionary, chunkJSON, cleanOutputDir, createDictionaryEntryPoint, createModuleAugmentation, createTypes, detectExportedComponentName, detectFormatCommand, extractDictionaryKey, extractIntlayer, fetchDistantDictionaries, formatLocale, formatPath, generateDictionaryListContent, getBuiltDictionariesPath, getBuiltDynamicDictionariesPath, getBuiltFetchDictionariesPath, getBuiltRemoteDictionariesPath, getBuiltUnmergedDictionariesPath, getChunk, getContentDeclarationFileTemplate, getExtensionFromFormat, getFileHash, getFormatFromExtension, getGlobalLimiter, getTaskLimiter, handleAdditionalContentDeclarationFile, handleContentDeclarationFileChange, handleUnlinkedContentDeclarationFile, isInvalidDictionary, listDictionaries, listDictionariesWithStats, listGitFiles, listGitLines, loadContentDeclarations, loadDictionaries, loadLocalDictionaries, loadRemoteDictionaries, pLimit, parallelize, parallelizeGlobal, prepareIntlayer, reconstructFromSingleChunk, reduceDictionaryContent, reduceObjectFormat, resolveObjectPromises, runOnce, runParallel, sortAlphabetically, splitTextByLines, transformFiles, transformJSFile, verifyIdenticObjectFormat, watch, writeContentDeclaration, writeJSFile };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types";
|
|
2
|
+
import * as fs0 from "fs";
|
|
2
3
|
|
|
3
4
|
//#region src/listDictionariesPath.d.ts
|
|
4
5
|
|
|
@@ -8,6 +9,10 @@ import { IntlayerConfig } from "@intlayer/types";
|
|
|
8
9
|
* @returns An array of dictionary paths
|
|
9
10
|
*/
|
|
10
11
|
declare const listDictionaries: (configuration: IntlayerConfig) => Promise<string[]>;
|
|
12
|
+
declare const listDictionariesWithStats: (configuration: IntlayerConfig) => Promise<{
|
|
13
|
+
path: string;
|
|
14
|
+
stats: fs0.Stats;
|
|
15
|
+
}[]>;
|
|
11
16
|
//#endregion
|
|
12
|
-
export { listDictionaries };
|
|
17
|
+
export { listDictionaries, listDictionariesWithStats };
|
|
13
18
|
//# sourceMappingURL=listDictionariesPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listDictionariesPath.d.ts","names":[],"sources":["../../src/listDictionariesPath.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"listDictionariesPath.d.ts","names":[],"sources":["../../src/listDictionariesPath.ts"],"sourcesContent":[],"mappings":";;;;;;;;AASA;AAaA;AACiB,cAdJ,gBAcI,EAAA,CAAA,aAAA,EAbA,cAaA,EAAA,GAZd,OAYc,CAAA,MAAA,EAAA,CAAA;AAAc,cADlB,yBACkB,EAAA,CAAA,aAAA,EAAd,cAAc,EAAA,GAAA,OAAA,CAAA;EAAA,IAAA,EAAA,MAAA;EAAA,KAAA,EAAA,GAAA,CAAA,KAAA"}
|
|
@@ -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":"prepareIntlayer.d.ts","names":[],"sources":["../../src/prepareIntlayer.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"prepareIntlayer.d.ts","names":[],"sources":["../../src/prepareIntlayer.ts"],"sourcesContent":[],"mappings":";;;KAwBK,sBAAA;;EAAA,MAAA,CAAA,EAAA,CAAA,KAAA,GAAA,KAAA,CAAA,EAAsB;EAcd,QAAA,CAAA,EAAA,OAuMZ;EAtMgB,cAAA,CAAA,EAAA,MAAA;EACL,UAAA,CAAA,EAAA,GAAA,GAAA,IAAA,GAXgB,OAWhB,CAAA,IAAA,CAAA;CAAsB;AAAA,cAFrB,eAEqB,EAAA,CAAA,aAAA,EADjB,cACiB,EAAA,OAAA,CAAA,EAAtB,sBAAsB,EAAA,GAAA,OAAA,CAAA,IAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractDictionaryKey.d.ts","names":[],"sources":["../../../src/transformFiles/extractDictionaryKey.ts"],"sourcesContent":[],"mappings":";cAGa"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { extractDictionaryKey } from "./extractDictionaryKey.js";
|
|
2
|
+
import { ExtractIntlayerOptions, PackageName, extractIntlayer, transformFiles } from "./transformFiles.js";
|
|
3
|
+
export { ExtractIntlayerOptions, PackageName, extractDictionaryKey, extractIntlayer, transformFiles };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GetConfigurationOptions } from "@intlayer/config";
|
|
2
|
+
import { Project } from "ts-morph";
|
|
3
|
+
|
|
4
|
+
//#region src/transformFiles/transformFiles.d.ts
|
|
5
|
+
type PackageName = 'next-intlayer' | 'react-intlayer' | 'vue-intlayer' | 'svelte-intlayer' | 'preact-intlayer' | 'solid-intlayer' | 'angular-intlayer' | 'express-intlayer';
|
|
6
|
+
type ExtractIntlayerOptions = {
|
|
7
|
+
configOptions?: GetConfigurationOptions;
|
|
8
|
+
outputDir?: string;
|
|
9
|
+
codeOnly?: boolean;
|
|
10
|
+
declarationOnly?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const extractIntlayer: (filePath: string, packageName: PackageName, options?: ExtractIntlayerOptions, project?: Project) => Promise<void>;
|
|
13
|
+
declare const transformFiles: (filePaths: string[], packageName: PackageName, options?: ExtractIntlayerOptions) => Promise<void>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ExtractIntlayerOptions, PackageName, extractIntlayer, transformFiles };
|
|
16
|
+
//# sourceMappingURL=transformFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformFiles.d.ts","names":[],"sources":["../../../src/transformFiles/transformFiles.ts"],"sourcesContent":[],"mappings":";;;;KAkRY,WAAA;KAUA,sBAAA;EAVA,aAAA,CAAW,EAWL,uBAXK;EAUX,SAAA,CAAA,EAAA,MAAA;EAOC,QAAA,CAAA,EAAA,OAkIZ;EAhIc,eAAA,CAAA,EAAA,OAAA;CACH;AACA,cAJC,eAID,EAAA,CAAA,QAAA,EAAA,MAAA,EAAA,WAAA,EAFG,WAEH,EAAA,OAAA,CAAA,EADA,sBACA,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,GAAO,OAAP,CAAA,IAAA,CAAA;AAAO,cAgIN,cAhIM,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAkIJ,WAlII,EAAA,OAAA,CAAA,EAmIP,sBAnIO,EAAA,GAmIe,OAnIf,CAAA,IAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformJSFile.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/transformJSFile.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"transformJSFile.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/transformJSFile.ts"],"sourcesContent":[],"mappings":";;;;;;AAy5GA;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,mDAEC,6BACK,WAChB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/chokidar",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0-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": [
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@intlayer/api": "7.
|
|
78
|
-
"@intlayer/config": "7.
|
|
79
|
-
"@intlayer/core": "7.
|
|
80
|
-
"@intlayer/dictionaries-entry": "7.
|
|
81
|
-
"@intlayer/remote-dictionaries-entry": "7.
|
|
82
|
-
"@intlayer/types": "7.
|
|
83
|
-
"@intlayer/unmerged-dictionaries-entry": "7.
|
|
77
|
+
"@intlayer/api": "7.3.0-canary.0",
|
|
78
|
+
"@intlayer/config": "7.3.0-canary.0",
|
|
79
|
+
"@intlayer/core": "7.3.0-canary.0",
|
|
80
|
+
"@intlayer/dictionaries-entry": "7.3.0-canary.0",
|
|
81
|
+
"@intlayer/remote-dictionaries-entry": "7.3.0-canary.0",
|
|
82
|
+
"@intlayer/types": "7.3.0-canary.0",
|
|
83
|
+
"@intlayer/unmerged-dictionaries-entry": "7.3.0-canary.0",
|
|
84
84
|
"chokidar": "3.6.0",
|
|
85
85
|
"crypto-js": "4.2.0",
|
|
86
86
|
"deepmerge": "4.3.1",
|
|
@@ -97,10 +97,19 @@
|
|
|
97
97
|
"rimraf": "6.1.2",
|
|
98
98
|
"tsdown": "0.16.6",
|
|
99
99
|
"typescript": "5.9.3",
|
|
100
|
-
"vitest": "4.0.
|
|
100
|
+
"vitest": "4.0.13"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
|
-
"
|
|
103
|
+
"@intlayer/svelte-transformer": "7.3.0-canary.0",
|
|
104
|
+
"@intlayer/vue-transformer": "7.3.0-canary.0"
|
|
105
|
+
},
|
|
106
|
+
"peerDependenciesMeta": {
|
|
107
|
+
"@intlayer/svelte-transformer": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"@intlayer/vue-transformer": {
|
|
111
|
+
"optional": true
|
|
112
|
+
}
|
|
104
113
|
},
|
|
105
114
|
"engines": {
|
|
106
115
|
"node": ">=14.18"
|