@intlayer/chokidar 7.5.9 → 7.5.11
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 +9 -2
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/init/index.cjs +101 -2
- package/dist/cjs/init/index.cjs.map +1 -1
- package/dist/cjs/listDictionariesPath.cjs +16 -1
- package/dist/cjs/listDictionariesPath.cjs.map +1 -1
- package/dist/cjs/listProjects.cjs +47 -0
- package/dist/cjs/listProjects.cjs.map +1 -0
- package/dist/cjs/loadDictionaries/loadDictionaries.cjs +4 -13
- package/dist/cjs/loadDictionaries/loadDictionaries.cjs.map +1 -1
- package/dist/cjs/watcher.cjs +1 -1
- package/dist/cjs/watcher.cjs.map +1 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/init/index.mjs +101 -2
- package/dist/esm/init/index.mjs.map +1 -1
- package/dist/esm/listDictionariesPath.mjs +16 -1
- package/dist/esm/listDictionariesPath.mjs.map +1 -1
- package/dist/esm/listProjects.mjs +44 -0
- package/dist/esm/listProjects.mjs.map +1 -0
- package/dist/esm/loadDictionaries/loadDictionaries.mjs +4 -13
- package/dist/esm/loadDictionaries/loadDictionaries.mjs.map +1 -1
- package/dist/esm/watcher.mjs +1 -1
- package/dist/esm/watcher.mjs.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -2
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +2 -2
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -1
- package/dist/types/formatDictionary.d.ts +15 -15
- package/dist/types/index.d.ts +2 -1
- package/dist/types/init/index.d.ts.map +1 -1
- package/dist/types/listDictionariesPath.d.ts.map +1 -1
- package/dist/types/listProjects.d.ts +26 -0
- package/dist/types/listProjects.d.ts.map +1 -0
- package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -2
- package/dist/types/utils/getFormatFromExtension.d.ts.map +1 -1
- package/package.json +10 -10
- package/dist/assets/initConfig/templates/js.txt +0 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types8 from "@intlayer/types";
|
|
2
2
|
import { Dictionary } from "@intlayer/types";
|
|
3
3
|
import * as _intlayer_core_messageFormat0 from "@intlayer/core/messageFormat";
|
|
4
4
|
|
|
@@ -9,45 +9,45 @@ declare const formatDictionaryOutput: (dictionary: Dictionary) => Dictionary | {
|
|
|
9
9
|
format: string;
|
|
10
10
|
content: _intlayer_core_messageFormat0.JsonValue;
|
|
11
11
|
$schema?: string;
|
|
12
|
-
id?:
|
|
12
|
+
id?: _intlayer_types8.DictionaryId;
|
|
13
13
|
projectIds?: string[];
|
|
14
|
-
localId?:
|
|
15
|
-
localIds?:
|
|
16
|
-
key:
|
|
14
|
+
localId?: _intlayer_types8.LocalDictionaryId;
|
|
15
|
+
localIds?: _intlayer_types8.LocalDictionaryId[];
|
|
16
|
+
key: _intlayer_types8.DictionaryKey;
|
|
17
17
|
title?: string;
|
|
18
18
|
description?: string;
|
|
19
19
|
versions?: string[];
|
|
20
20
|
version?: string;
|
|
21
21
|
filePath?: string;
|
|
22
22
|
tags?: string[];
|
|
23
|
-
locale?:
|
|
24
|
-
fill?:
|
|
23
|
+
locale?: _intlayer_types8.LocalesValues;
|
|
24
|
+
fill?: _intlayer_types8.Fill;
|
|
25
25
|
filled?: true;
|
|
26
26
|
priority?: number;
|
|
27
27
|
live?: boolean;
|
|
28
|
-
location?:
|
|
28
|
+
location?: _intlayer_types8.DictionaryLocation;
|
|
29
29
|
};
|
|
30
30
|
declare const formatDictionariesOutput: (dictionaries: Dictionary[]) => (Dictionary | {
|
|
31
31
|
format: string;
|
|
32
32
|
content: _intlayer_core_messageFormat0.JsonValue;
|
|
33
33
|
$schema?: string;
|
|
34
|
-
id?:
|
|
34
|
+
id?: _intlayer_types8.DictionaryId;
|
|
35
35
|
projectIds?: string[];
|
|
36
|
-
localId?:
|
|
37
|
-
localIds?:
|
|
38
|
-
key:
|
|
36
|
+
localId?: _intlayer_types8.LocalDictionaryId;
|
|
37
|
+
localIds?: _intlayer_types8.LocalDictionaryId[];
|
|
38
|
+
key: _intlayer_types8.DictionaryKey;
|
|
39
39
|
title?: string;
|
|
40
40
|
description?: string;
|
|
41
41
|
versions?: string[];
|
|
42
42
|
version?: string;
|
|
43
43
|
filePath?: string;
|
|
44
44
|
tags?: string[];
|
|
45
|
-
locale?:
|
|
46
|
-
fill?:
|
|
45
|
+
locale?: _intlayer_types8.LocalesValues;
|
|
46
|
+
fill?: _intlayer_types8.Fill;
|
|
47
47
|
filled?: true;
|
|
48
48
|
priority?: number;
|
|
49
49
|
live?: boolean;
|
|
50
|
-
location?:
|
|
50
|
+
location?: _intlayer_types8.DictionaryLocation;
|
|
51
51
|
})[];
|
|
52
52
|
//#endregion
|
|
53
53
|
export { formatDictionaries, formatDictionariesOutput, formatDictionary, formatDictionaryOutput };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { handleUnlinkedContentDeclarationFile } from "./handleUnlinkedContentDec
|
|
|
27
27
|
import { initIntlayer } from "./init/index.js";
|
|
28
28
|
import { listDictionaries, listDictionariesWithStats } from "./listDictionariesPath.js";
|
|
29
29
|
import { DiffMode, ListGitFilesOptions, ListGitLinesOptions, listGitFiles, listGitLines } from "./listGitFiles.js";
|
|
30
|
+
import { ListProjectsOptions, listProjects } from "./listProjects.js";
|
|
30
31
|
import { prepareIntlayer } from "./prepareIntlayer.js";
|
|
31
32
|
import { reduceDictionaryContent } from "./reduceDictionaryContent/reduceDictionaryContent.js";
|
|
32
33
|
import { extractDictionaryKey } from "./transformFiles/extractDictionaryKey.js";
|
|
@@ -56,4 +57,4 @@ import { writeContentDeclaration } from "./writeContentDeclaration/writeContentD
|
|
|
56
57
|
import { writeJSFile } from "./writeContentDeclaration/writeJSFile.js";
|
|
57
58
|
import "./writeContentDeclaration/index.js";
|
|
58
59
|
import { detectFormatCommand } from "./writeContentDeclaration/detectFormatCommand.js";
|
|
59
|
-
export { ATTRIBUTES_TO_EXTRACT, type BuildFilesListOptions, type DictionaryStatus, type DiffMode, type Extension, type Format, type JSONObject, type JsonChunk, type ListGitFilesOptions, type ListGitLinesOptions, type PackageName, type ParallelHandle, assembleJSON, buildAndWatchIntlayer, buildDictionary, buildFilesList, chunkJSON, cleanOutputDir, createDictionaryEntryPoint, createModuleAugmentation, createTypes, detectExportedComponentName, detectFormatCommand, extractDictionaryKey, extractIntlayer, fetchDistantDictionaries, formatDictionaries, formatDictionariesOutput, formatDictionary, formatDictionaryOutput, formatLocale, formatPath, generateDictionaryListContent, generateKey, getBuiltDictionariesPath, getBuiltDynamicDictionariesPath, getBuiltFetchDictionariesPath, getBuiltRemoteDictionariesPath, getBuiltUnmergedDictionariesPath, getChunk, getComponentTransformPattern, getComponentTransformPatternSync, getContentDeclarationFileTemplate, getExtensionFromFormat, getFileHash, getFormatFromExtension, getGlobalLimiter, getTaskLimiter, handleAdditionalContentDeclarationFile, handleContentDeclarationFileChange, handleUnlinkedContentDeclarationFile, initIntlayer, isInvalidDictionary, listDictionaries, listDictionariesWithStats, listGitFiles, listGitLines, loadContentDeclarations, loadDictionaries, loadLocalDictionaries, loadRemoteDictionaries, pLimit, parallelize, parallelizeGlobal, prepareIntlayer, reconstructFromSingleChunk, reduceDictionaryContent, reduceObjectFormat, resolveObjectPromises, runOnce, runParallel, shouldExtract, sortAlphabetically, splitTextByLines, transformFiles, transformJSFile, verifyIdenticObjectFormat, watch, writeContentDeclaration, writeJSFile };
|
|
60
|
+
export { ATTRIBUTES_TO_EXTRACT, type BuildFilesListOptions, type DictionaryStatus, type DiffMode, type Extension, type Format, type JSONObject, type JsonChunk, type ListGitFilesOptions, type ListGitLinesOptions, type ListProjectsOptions, type PackageName, type ParallelHandle, assembleJSON, buildAndWatchIntlayer, buildDictionary, buildFilesList, chunkJSON, cleanOutputDir, createDictionaryEntryPoint, createModuleAugmentation, createTypes, detectExportedComponentName, detectFormatCommand, extractDictionaryKey, extractIntlayer, fetchDistantDictionaries, formatDictionaries, formatDictionariesOutput, formatDictionary, formatDictionaryOutput, formatLocale, formatPath, generateDictionaryListContent, generateKey, getBuiltDictionariesPath, getBuiltDynamicDictionariesPath, getBuiltFetchDictionariesPath, getBuiltRemoteDictionariesPath, getBuiltUnmergedDictionariesPath, getChunk, getComponentTransformPattern, getComponentTransformPatternSync, getContentDeclarationFileTemplate, getExtensionFromFormat, getFileHash, getFormatFromExtension, getGlobalLimiter, getTaskLimiter, handleAdditionalContentDeclarationFile, handleContentDeclarationFileChange, handleUnlinkedContentDeclarationFile, initIntlayer, isInvalidDictionary, listDictionaries, listDictionariesWithStats, listGitFiles, listGitLines, listProjects, loadContentDeclarations, loadDictionaries, loadLocalDictionaries, loadRemoteDictionaries, pLimit, parallelize, parallelizeGlobal, prepareIntlayer, reconstructFromSingleChunk, reduceDictionaryContent, reduceObjectFormat, resolveObjectPromises, runOnce, runParallel, shouldExtract, sortAlphabetically, splitTextByLines, transformFiles, transformJSFile, verifyIdenticObjectFormat, watch, writeContentDeclaration, writeJSFile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/init/index.ts"],"sourcesContent":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/init/index.ts"],"sourcesContent":[],"mappings":";;AA4JA;;cAAa,mCAAqC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listDictionariesPath.d.ts","names":[],"sources":["../../src/listDictionariesPath.ts"],"sourcesContent":[],"mappings":";;;;;;;;AASA;
|
|
1
|
+
{"version":3,"file":"listDictionariesPath.d.ts","names":[],"sources":["../../src/listDictionariesPath.ts"],"sourcesContent":[],"mappings":";;;;;;;;AASA;AA4CA;AACiB,cA7CJ,gBA6CI,EAAA,CAAA,aAAA,EA5CA,cA4CA,EAAA,GA3Cd,OA2Cc,CAAA,MAAA,EAAA,CAAA;AAAc,cADlB,yBACkB,EAAA,CAAA,aAAA,EAAd,cAAc,EAAA,GAAA,OAAA,CAAA;EAAA,IAAA,EAAA,MAAA;EAAA,KAAA,EAAA,QAAA,CAAA,KAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/listProjects.d.ts
|
|
2
|
+
type ListProjectsOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* Base directory to search from
|
|
5
|
+
* @default process.cwd()
|
|
6
|
+
*/
|
|
7
|
+
baseDir?: string;
|
|
8
|
+
/**
|
|
9
|
+
* If true, search from the git root directory instead of baseDir
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
gitRoot?: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* List all Intlayer projects by searching for configuration files
|
|
16
|
+
*
|
|
17
|
+
* @param options - Options for listing projects
|
|
18
|
+
* @returns Array of absolute paths to project directories containing Intlayer config
|
|
19
|
+
*/
|
|
20
|
+
declare const listProjects: (options?: ListProjectsOptions) => Promise<{
|
|
21
|
+
searchDir: string;
|
|
22
|
+
projectsPath: string[];
|
|
23
|
+
}>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { ListProjectsOptions, listProjects };
|
|
26
|
+
//# sourceMappingURL=listProjects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listProjects.d.ts","names":[],"sources":["../../src/listProjects.ts"],"sourcesContent":[],"mappings":";KAKY,mBAAA;EAAA;AAgCZ;;;;;;;;;;;;;;;;cAAa,yBACD,wBACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadDictionaries.ts"],"sourcesContent":[],"mappings":";;;KAcY,kBAAA;;EAAA,IAAA,EAAA,OAAA,GAAA,QAAkB;EA6IjB,MAAA,EAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"loadDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadDictionaries.ts"],"sourcesContent":[],"mappings":";;;KAcY,kBAAA;;EAAA,IAAA,EAAA,OAAA,GAAA,QAAkB;EA6IjB,MAAA,EAAA,SAAA,GA6HZ,UAAA,GAAA,SAAA,GAAA,OAAA,GAAA,UAAA,GAAA,OAAA,GAAA,UAAA,GAAA,OAAA;EA3HgB,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_types2 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_types2.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":"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,MAAY,EAkBf,MAF9C,EAAA,GAEuD,SAFvD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/chokidar",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.11",
|
|
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": [
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@intlayer/api": "7.5.
|
|
79
|
-
"@intlayer/config": "7.5.
|
|
80
|
-
"@intlayer/core": "7.5.
|
|
81
|
-
"@intlayer/dictionaries-entry": "7.5.
|
|
82
|
-
"@intlayer/remote-dictionaries-entry": "7.5.
|
|
83
|
-
"@intlayer/types": "7.5.
|
|
84
|
-
"@intlayer/unmerged-dictionaries-entry": "7.5.
|
|
78
|
+
"@intlayer/api": "7.5.11",
|
|
79
|
+
"@intlayer/config": "7.5.11",
|
|
80
|
+
"@intlayer/core": "7.5.11",
|
|
81
|
+
"@intlayer/dictionaries-entry": "7.5.11",
|
|
82
|
+
"@intlayer/remote-dictionaries-entry": "7.5.11",
|
|
83
|
+
"@intlayer/types": "7.5.11",
|
|
84
|
+
"@intlayer/unmerged-dictionaries-entry": "7.5.11",
|
|
85
85
|
"chokidar": "3.6.0",
|
|
86
86
|
"crypto-js": "4.2.0",
|
|
87
87
|
"defu": "6.1.4",
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"vitest": "4.0.16"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
|
-
"@intlayer/svelte-transformer": "7.5.
|
|
105
|
-
"@intlayer/vue-transformer": "7.5.
|
|
104
|
+
"@intlayer/svelte-transformer": "7.5.11",
|
|
105
|
+
"@intlayer/vue-transformer": "7.5.11"
|
|
106
106
|
},
|
|
107
107
|
"peerDependenciesMeta": {
|
|
108
108
|
"@intlayer/svelte-transformer": {
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Locales } from 'intlayer';
|
|
2
|
-
|
|
3
|
-
/** @type {import('intlayer').IntlayerConfig} */
|
|
4
|
-
const getIntlayerConfig = () => {
|
|
5
|
-
/** @type {import('intlayer').IntlayerConfig} */
|
|
6
|
-
const config = {
|
|
7
|
-
internationalization: {
|
|
8
|
-
locales: [Locales.ENGLISH],
|
|
9
|
-
defaultLocale: Locales.ENGLISH,
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
return config;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const config = getIntlayerConfig();
|
|
17
|
-
|
|
18
|
-
export default config;
|