@intlayer/chokidar 6.1.4 → 6.1.6-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/index.cjs.map +1 -1
- package/dist/cjs/prepareIntlayer.cjs +15 -15
- package/dist/cjs/prepareIntlayer.cjs.map +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/prepareIntlayer.mjs +15 -15
- package/dist/esm/prepareIntlayer.mjs.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +14 -16
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export { buildDictionary } from './buildIntlayerDictionary/buildIntlayerDictionary';\nexport { cleanOutputDir } from './cleanOutputDir';\nexport {\n createDictionaryEntryPoint,\n generateDictionaryListContent,\n getBuiltDictionariesPath,\n getBuiltDynamicDictionariesPath,\n getBuiltFetchDictionariesPath,\n getBuiltRemoteDictionariesPath,\n getBuiltUnmergedDictionariesPath,\n} from './createDictionaryEntryPoint';\nexport { createTypes } from './createType';\nexport { createModuleAugmentation } from './createType/createModuleAugmentation';\nexport { fetchDistantDictionaries } from './fetchDistantDictionaries';\nexport { isInvalidDictionary } from './filterInvalidDictionaries';\nexport { getContentDeclarationFileTemplate } from './getContentDeclarationFileTemplate/getContentDeclarationFileTemplate';\nexport { handleAdditionalContentDeclarationFile } from './handleAdditionalContentDeclarationFile';\nexport { handleContentDeclarationFileChange } from './handleContentDeclarationFileChange';\nexport { handleUnlikedContentDeclarationFile } from './handleUnlikedContentDeclarationFile';\nexport { listDictionaries } from './listDictionariesPath';\nexport {\n listGitFiles,\n listGitLines,\n type DiffMode,\n type ListGitFilesOptions,\n type ListGitLinesOptions,\n} from './listGitFiles';\nexport {\n loadContentDeclarations,\n loadDictionaries,\n loadLocalDictionaries,\n loadRemoteDictionaries,\n} from './loadDictionaries';\nexport { mergeDictionaries } from './mergeDictionaries';\nexport { prepareContentDeclaration } from './prepareContentDeclaration';\nexport { prepareIntlayer } from './prepareIntlayer';\nexport { processPerLocaleDictionary } from './processPerLocaleDictionary';\nexport { reduceDictionaryContent } from './reduceDictionaryContent/reduceDictionaryContent';\nexport { extractErrorMessage } from './utils/extractErrorMessage';\nexport { formatLocale, formatPath } from './utils/formatter';\nexport { getExtension } from './utils/getExtention';\nexport { getFileHash } from './utils/getFileHash';\nexport {\n getExtensionFromFormat,\n getFormatFromExtension,\n} from './utils/getFormatFromExtension';\nexport { kebabCaseToCamelCase } from './utils/kebabCaseToCamelCase';\nexport { parallelize } from './utils/parallelize';\nexport { resolveObjectPromises } from './utils/resolveObjectPromises';\nexport { runOnce } from './utils/runOnce';\nexport { runParallel, type ParallelHandle } from './utils/runParallel';\nexport { sortAlphabetically } from './utils/sortAlphabetically';\nexport { buildAndWatchIntlayer, watch } from './watcher';\nexport {\n detectExportedComponentName,\n formatCode,\n transformJSFile,\n writeContentDeclaration,\n writeJSFile,\n type DictionaryStatus,\n} from './writeContentDeclaration';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAAgC;AAChC,4BAA+B;AAC/B,wCAQO;AACP,wBAA4B;AAC5B,sCAAyC;AACzC,sCAAyC;AACzC,uCAAoC;AACpC,+CAAkD;AAClD,oDAAuD;AACvD,gDAAmD;AACnD,iDAAoD;AACpD,kCAAiC;AACjC,0BAMO;AACP,8BAKO;AACP,+BAAkC;AAClC,uCAA0C;AAC1C,6BAAgC;AAChC,wCAA2C;AAC3C,qCAAwC;AACxC,iCAAoC;AACpC,uBAAyC;AACzC,0BAA6B;AAC7B,yBAA4B;AAC5B,
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export { buildDictionary } from './buildIntlayerDictionary/buildIntlayerDictionary';\nexport { cleanOutputDir } from './cleanOutputDir';\nexport {\n createDictionaryEntryPoint,\n generateDictionaryListContent,\n getBuiltDictionariesPath,\n getBuiltDynamicDictionariesPath,\n getBuiltFetchDictionariesPath,\n getBuiltRemoteDictionariesPath,\n getBuiltUnmergedDictionariesPath,\n} from './createDictionaryEntryPoint';\nexport { createTypes } from './createType';\nexport { createModuleAugmentation } from './createType/createModuleAugmentation';\nexport { fetchDistantDictionaries } from './fetchDistantDictionaries';\nexport { isInvalidDictionary } from './filterInvalidDictionaries';\nexport { getContentDeclarationFileTemplate } from './getContentDeclarationFileTemplate/getContentDeclarationFileTemplate';\nexport { handleAdditionalContentDeclarationFile } from './handleAdditionalContentDeclarationFile';\nexport { handleContentDeclarationFileChange } from './handleContentDeclarationFileChange';\nexport { handleUnlikedContentDeclarationFile } from './handleUnlikedContentDeclarationFile';\nexport { listDictionaries } from './listDictionariesPath';\nexport {\n listGitFiles,\n listGitLines,\n type DiffMode,\n type ListGitFilesOptions,\n type ListGitLinesOptions,\n} from './listGitFiles';\nexport {\n loadContentDeclarations,\n loadDictionaries,\n loadLocalDictionaries,\n loadRemoteDictionaries,\n} from './loadDictionaries';\nexport { mergeDictionaries } from './mergeDictionaries';\nexport { prepareContentDeclaration } from './prepareContentDeclaration';\nexport { prepareIntlayer } from './prepareIntlayer';\nexport { processPerLocaleDictionary } from './processPerLocaleDictionary';\nexport { reduceDictionaryContent } from './reduceDictionaryContent/reduceDictionaryContent';\nexport { extractErrorMessage } from './utils/extractErrorMessage';\nexport { formatLocale, formatPath } from './utils/formatter';\nexport { getExtension } from './utils/getExtention';\nexport { getFileHash } from './utils/getFileHash';\nexport {\n getExtensionFromFormat,\n getFormatFromExtension,\n type Extension,\n type Format,\n} from './utils/getFormatFromExtension';\nexport { kebabCaseToCamelCase } from './utils/kebabCaseToCamelCase';\nexport { parallelize } from './utils/parallelize';\nexport { resolveObjectPromises } from './utils/resolveObjectPromises';\nexport { runOnce } from './utils/runOnce';\nexport { runParallel, type ParallelHandle } from './utils/runParallel';\nexport { sortAlphabetically } from './utils/sortAlphabetically';\nexport { buildAndWatchIntlayer, watch } from './watcher';\nexport {\n detectExportedComponentName,\n formatCode,\n transformJSFile,\n writeContentDeclaration,\n writeJSFile,\n type DictionaryStatus,\n} from './writeContentDeclaration';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAAgC;AAChC,4BAA+B;AAC/B,wCAQO;AACP,wBAA4B;AAC5B,sCAAyC;AACzC,sCAAyC;AACzC,uCAAoC;AACpC,+CAAkD;AAClD,oDAAuD;AACvD,gDAAmD;AACnD,iDAAoD;AACpD,kCAAiC;AACjC,0BAMO;AACP,8BAKO;AACP,+BAAkC;AAClC,uCAA0C;AAC1C,6BAAgC;AAChC,wCAA2C;AAC3C,qCAAwC;AACxC,iCAAoC;AACpC,uBAAyC;AACzC,0BAA6B;AAC7B,yBAA4B;AAC5B,oCAKO;AACP,kCAAqC;AACrC,yBAA4B;AAC5B,mCAAsC;AACtC,qBAAwB;AACxB,yBAAiD;AACjD,gCAAmC;AACnC,qBAA6C;AAC7C,qCAOO;","names":[]}
|
|
@@ -51,6 +51,20 @@ const prepareIntlayer = async (configuration = (0, import_config.getConfiguratio
|
|
|
51
51
|
if (clean) {
|
|
52
52
|
(0, import_cleanOutputDir.cleanOutputDir)(configuration);
|
|
53
53
|
}
|
|
54
|
+
await (0, import_writeConfiguration.writeConfiguration)(configuration);
|
|
55
|
+
const configurationWrittenTime = Date.now();
|
|
56
|
+
appLogger(
|
|
57
|
+
[
|
|
58
|
+
"Configuration written",
|
|
59
|
+
(0, import_config.colorize)(
|
|
60
|
+
`(${configurationWrittenTime - preparationStartMs}ms)`,
|
|
61
|
+
import_config.ANSIColors.GREY_DARK
|
|
62
|
+
)
|
|
63
|
+
],
|
|
64
|
+
{
|
|
65
|
+
isVerbose: true
|
|
66
|
+
}
|
|
67
|
+
);
|
|
54
68
|
const files = (0, import_listDictionariesPath.listDictionaries)(configuration);
|
|
55
69
|
const dictionaries = await (0, import_loadDictionaries.loadDictionaries)(
|
|
56
70
|
files,
|
|
@@ -63,7 +77,7 @@ const prepareIntlayer = async (configuration = (0, import_config.getConfiguratio
|
|
|
63
77
|
"Content loaded",
|
|
64
78
|
(0, import_config.colorize)(
|
|
65
79
|
[
|
|
66
|
-
dictionaries.remoteDictionaries.length > 0 ? ` (Total: ${dictionariesLoadedTime -
|
|
80
|
+
dictionaries.remoteDictionaries.length > 0 ? ` (Total: ${dictionariesLoadedTime - configurationWrittenTime}ms - Local: ${dictionaries.time.localDictionaries}ms - Remote: ${dictionaries.time.remoteDictionaries}ms)` : `(${dictionariesLoadedTime - configurationWrittenTime}ms)`
|
|
67
81
|
].join(""),
|
|
68
82
|
import_config.ANSIColors.GREY_DARK
|
|
69
83
|
)
|
|
@@ -106,20 +120,6 @@ const prepareIntlayer = async (configuration = (0, import_config.getConfiguratio
|
|
|
106
120
|
isVerbose: true
|
|
107
121
|
}
|
|
108
122
|
);
|
|
109
|
-
await (0, import_writeConfiguration.writeConfiguration)(configuration);
|
|
110
|
-
const configurationWrittenTime = Date.now();
|
|
111
|
-
appLogger(
|
|
112
|
-
[
|
|
113
|
-
"Configuration written",
|
|
114
|
-
(0, import_config.colorize)(
|
|
115
|
-
`(${configurationWrittenTime - moduleAugmentationBuiltTime}ms)`,
|
|
116
|
-
import_config.ANSIColors.GREY_DARK
|
|
117
|
-
)
|
|
118
|
-
],
|
|
119
|
-
{
|
|
120
|
-
isVerbose: true
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
123
|
const preparationElapsedMs = Date.now() - preparationStartMs;
|
|
124
124
|
appLogger([`Done`, (0, import_config.colorize)(`${preparationElapsedMs}ms`, import_config.ANSIColors.GREEN)], {
|
|
125
125
|
level: "info",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/prepareIntlayer.ts"],"sourcesContent":["import {\n ANSIColors,\n ESMxCJSRequire,\n type IntlayerConfig,\n colorize,\n getAppLogger,\n getConfiguration,\n} from '@intlayer/config';\nimport packageJson from '@intlayer/config/package.json' with { type: 'json' };\nimport { buildDictionary } from './buildIntlayerDictionary/buildIntlayerDictionary';\nimport { writeRemoteDictionary } from './buildIntlayerDictionary/writeRemoteDictionary';\nimport { cleanOutputDir } from './cleanOutputDir';\nimport { createDictionaryEntryPoint } from './createDictionaryEntryPoint/createDictionaryEntryPoint';\nimport { createModuleAugmentation, createTypes } from './createType/index';\nimport { listDictionaries } from './listDictionariesPath';\nimport { loadDictionaries } from './loadDictionaries/loadDictionaries';\nimport { writeConfiguration } from './writeConfiguration';\n\nexport const prepareIntlayer = async (\n configuration: IntlayerConfig = getConfiguration(),\n projectRequire = ESMxCJSRequire,\n clean = false,\n format: ('cjs' | 'esm')[] = ['cjs', 'esm']\n) => {\n const appLogger = getAppLogger(configuration);\n const preparationStartMs = Date.now();\n\n appLogger([\n 'Preparing Intlayer',\n colorize(`(v${packageJson.version})`, ANSIColors.GREY_DARK),\n ]);\n\n if (clean) {\n cleanOutputDir(configuration);\n }\n\n const files: string[] = listDictionaries(configuration);\n\n const dictionaries = await loadDictionaries(\n files,\n configuration,\n projectRequire\n );\n\n const dictionariesLoadedTime = Date.now();\n\n appLogger(\n [\n 'Content loaded',\n colorize(\n [\n dictionaries.remoteDictionaries.length > 0\n ? ` (Total: ${dictionariesLoadedTime -
|
|
1
|
+
{"version":3,"sources":["../../src/prepareIntlayer.ts"],"sourcesContent":["import {\n ANSIColors,\n ESMxCJSRequire,\n type IntlayerConfig,\n colorize,\n getAppLogger,\n getConfiguration,\n} from '@intlayer/config';\nimport packageJson from '@intlayer/config/package.json' with { type: 'json' };\nimport { buildDictionary } from './buildIntlayerDictionary/buildIntlayerDictionary';\nimport { writeRemoteDictionary } from './buildIntlayerDictionary/writeRemoteDictionary';\nimport { cleanOutputDir } from './cleanOutputDir';\nimport { createDictionaryEntryPoint } from './createDictionaryEntryPoint/createDictionaryEntryPoint';\nimport { createModuleAugmentation, createTypes } from './createType/index';\nimport { listDictionaries } from './listDictionariesPath';\nimport { loadDictionaries } from './loadDictionaries/loadDictionaries';\nimport { writeConfiguration } from './writeConfiguration';\n\nexport const prepareIntlayer = async (\n configuration: IntlayerConfig = getConfiguration(),\n projectRequire = ESMxCJSRequire,\n clean = false,\n format: ('cjs' | 'esm')[] = ['cjs', 'esm']\n) => {\n const appLogger = getAppLogger(configuration);\n const preparationStartMs = Date.now();\n\n appLogger([\n 'Preparing Intlayer',\n colorize(`(v${packageJson.version})`, ANSIColors.GREY_DARK),\n ]);\n\n if (clean) {\n cleanOutputDir(configuration);\n }\n\n await writeConfiguration(configuration);\n\n const configurationWrittenTime = Date.now();\n\n appLogger(\n [\n 'Configuration written',\n colorize(\n `(${configurationWrittenTime - preparationStartMs}ms)`,\n ANSIColors.GREY_DARK\n ),\n ],\n {\n isVerbose: true,\n }\n );\n\n const files: string[] = listDictionaries(configuration);\n\n const dictionaries = await loadDictionaries(\n files,\n configuration,\n projectRequire\n );\n\n const dictionariesLoadedTime = Date.now();\n\n appLogger(\n [\n 'Content loaded',\n colorize(\n [\n dictionaries.remoteDictionaries.length > 0\n ? ` (Total: ${dictionariesLoadedTime - configurationWrittenTime}ms - Local: ${dictionaries.time.localDictionaries}ms - Remote: ${dictionaries.time.remoteDictionaries}ms)`\n : `(${dictionariesLoadedTime - configurationWrittenTime}ms)`,\n ].join(''),\n ANSIColors.GREY_DARK\n ),\n ],\n {\n isVerbose: true,\n }\n );\n\n // Build local dictionaries\n const dictionariesOutput = await buildDictionary(\n [...dictionaries.localDictionaries, ...dictionaries.remoteDictionaries],\n configuration,\n format,\n false\n );\n\n // Write remote dictionaries\n // Used as cache for next fetch\n await writeRemoteDictionary(dictionaries.remoteDictionaries, configuration);\n\n const dictionariesPaths = Object.values(\n dictionariesOutput?.mergedDictionaries ?? {}\n ).map((dictionary) => dictionary.dictionaryPath);\n\n await createTypes(dictionariesPaths);\n\n await createDictionaryEntryPoint(configuration);\n\n const dictionariesBuiltTime = Date.now();\n\n appLogger([\n 'Dictionaries built',\n colorize(\n `(${dictionariesBuiltTime - preparationStartMs}ms)`,\n ANSIColors.GREY_DARK\n ),\n ]);\n\n await createModuleAugmentation(configuration);\n\n const moduleAugmentationBuiltTime = Date.now();\n\n appLogger(\n [\n 'Module augmentation built',\n colorize(\n `(${moduleAugmentationBuiltTime - dictionariesBuiltTime}ms)`,\n ANSIColors.GREY_DARK\n ),\n ],\n {\n isVerbose: true,\n }\n );\n\n const preparationElapsedMs = Date.now() - preparationStartMs;\n appLogger([`Done`, colorize(`${preparationElapsedMs}ms`, ANSIColors.GREEN)], {\n level: 'info',\n isVerbose: true,\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAOO;AACP,qBAAwB;AACxB,qCAAgC;AAChC,mCAAsC;AACtC,4BAA+B;AAC/B,wCAA2C;AAC3C,wBAAsD;AACtD,kCAAiC;AACjC,8BAAiC;AACjC,gCAAmC;AAE5B,MAAM,kBAAkB,OAC7B,oBAAgC,gCAAiB,GACjD,iBAAiB,8BACjB,QA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+BAAY,iBAAiB;AAEnC,YAAM,8DAA2B,aAAa;AAE9C,QAAM,wBAAwB,KAAK,IAAI;AAEvC,YAAU;AAAA,IACR;AAAA,QACA;AAAA,MACE,IAAI,wBAAwB,kBAAkB;AAAA,MAC9C,yBAAW;AAAA,IACb;AAAA,EACF,CAAC;AAED,YAAM,4CAAyB,aAAa;AAE5C,QAAM,8BAA8B,KAAK,IAAI;AAE7C;AAAA,IACE;AAAA,MACE;AAAA,UACA;AAAA,QACE,IAAI,8BAA8B,qBAAqB;AAAA,QACvD,yBAAW;AAAA,MACb;AAAA,IACF;AAAA,IACA;AAAA,MACE,WAAW;AAAA,IACb;AAAA,EACF;AAEA,QAAM,uBAAuB,KAAK,IAAI,IAAI;AAC1C,YAAU,CAAC,YAAQ,wBAAS,GAAG,oBAAoB,MAAM,yBAAW,KAAK,CAAC,GAAG;AAAA,IAC3E,OAAO;AAAA,IACP,WAAW;AAAA,EACb,CAAC;AACH;","names":["packageJson"]}
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export { buildDictionary } from './buildIntlayerDictionary/buildIntlayerDictionary';\nexport { cleanOutputDir } from './cleanOutputDir';\nexport {\n createDictionaryEntryPoint,\n generateDictionaryListContent,\n getBuiltDictionariesPath,\n getBuiltDynamicDictionariesPath,\n getBuiltFetchDictionariesPath,\n getBuiltRemoteDictionariesPath,\n getBuiltUnmergedDictionariesPath,\n} from './createDictionaryEntryPoint';\nexport { createTypes } from './createType';\nexport { createModuleAugmentation } from './createType/createModuleAugmentation';\nexport { fetchDistantDictionaries } from './fetchDistantDictionaries';\nexport { isInvalidDictionary } from './filterInvalidDictionaries';\nexport { getContentDeclarationFileTemplate } from './getContentDeclarationFileTemplate/getContentDeclarationFileTemplate';\nexport { handleAdditionalContentDeclarationFile } from './handleAdditionalContentDeclarationFile';\nexport { handleContentDeclarationFileChange } from './handleContentDeclarationFileChange';\nexport { handleUnlikedContentDeclarationFile } from './handleUnlikedContentDeclarationFile';\nexport { listDictionaries } from './listDictionariesPath';\nexport {\n listGitFiles,\n listGitLines,\n type DiffMode,\n type ListGitFilesOptions,\n type ListGitLinesOptions,\n} from './listGitFiles';\nexport {\n loadContentDeclarations,\n loadDictionaries,\n loadLocalDictionaries,\n loadRemoteDictionaries,\n} from './loadDictionaries';\nexport { mergeDictionaries } from './mergeDictionaries';\nexport { prepareContentDeclaration } from './prepareContentDeclaration';\nexport { prepareIntlayer } from './prepareIntlayer';\nexport { processPerLocaleDictionary } from './processPerLocaleDictionary';\nexport { reduceDictionaryContent } from './reduceDictionaryContent/reduceDictionaryContent';\nexport { extractErrorMessage } from './utils/extractErrorMessage';\nexport { formatLocale, formatPath } from './utils/formatter';\nexport { getExtension } from './utils/getExtention';\nexport { getFileHash } from './utils/getFileHash';\nexport {\n getExtensionFromFormat,\n getFormatFromExtension,\n} from './utils/getFormatFromExtension';\nexport { kebabCaseToCamelCase } from './utils/kebabCaseToCamelCase';\nexport { parallelize } from './utils/parallelize';\nexport { resolveObjectPromises } from './utils/resolveObjectPromises';\nexport { runOnce } from './utils/runOnce';\nexport { runParallel, type ParallelHandle } from './utils/runParallel';\nexport { sortAlphabetically } from './utils/sortAlphabetically';\nexport { buildAndWatchIntlayer, watch } from './watcher';\nexport {\n detectExportedComponentName,\n formatCode,\n transformJSFile,\n writeContentDeclaration,\n writeJSFile,\n type DictionaryStatus,\n} from './writeContentDeclaration';\n"],"mappings":"AAAA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,mBAAmB;AAC5B,SAAS,gCAAgC;AACzC,SAAS,gCAAgC;AACzC,SAAS,2BAA2B;AACpC,SAAS,yCAAyC;AAClD,SAAS,8CAA8C;AACvD,SAAS,0CAA0C;AACnD,SAAS,2CAA2C;AACpD,SAAS,wBAAwB;AACjC;AAAA,EACE;AAAA,EACA;AAAA,OAIK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,yBAAyB;AAClC,SAAS,iCAAiC;AAC1C,SAAS,uBAAuB;AAChC,SAAS,kCAAkC;AAC3C,SAAS,+BAA+B;AACxC,SAAS,2BAA2B;AACpC,SAAS,cAAc,kBAAkB;AACzC,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B;AAAA,EACE;AAAA,EACA;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export { buildDictionary } from './buildIntlayerDictionary/buildIntlayerDictionary';\nexport { cleanOutputDir } from './cleanOutputDir';\nexport {\n createDictionaryEntryPoint,\n generateDictionaryListContent,\n getBuiltDictionariesPath,\n getBuiltDynamicDictionariesPath,\n getBuiltFetchDictionariesPath,\n getBuiltRemoteDictionariesPath,\n getBuiltUnmergedDictionariesPath,\n} from './createDictionaryEntryPoint';\nexport { createTypes } from './createType';\nexport { createModuleAugmentation } from './createType/createModuleAugmentation';\nexport { fetchDistantDictionaries } from './fetchDistantDictionaries';\nexport { isInvalidDictionary } from './filterInvalidDictionaries';\nexport { getContentDeclarationFileTemplate } from './getContentDeclarationFileTemplate/getContentDeclarationFileTemplate';\nexport { handleAdditionalContentDeclarationFile } from './handleAdditionalContentDeclarationFile';\nexport { handleContentDeclarationFileChange } from './handleContentDeclarationFileChange';\nexport { handleUnlikedContentDeclarationFile } from './handleUnlikedContentDeclarationFile';\nexport { listDictionaries } from './listDictionariesPath';\nexport {\n listGitFiles,\n listGitLines,\n type DiffMode,\n type ListGitFilesOptions,\n type ListGitLinesOptions,\n} from './listGitFiles';\nexport {\n loadContentDeclarations,\n loadDictionaries,\n loadLocalDictionaries,\n loadRemoteDictionaries,\n} from './loadDictionaries';\nexport { mergeDictionaries } from './mergeDictionaries';\nexport { prepareContentDeclaration } from './prepareContentDeclaration';\nexport { prepareIntlayer } from './prepareIntlayer';\nexport { processPerLocaleDictionary } from './processPerLocaleDictionary';\nexport { reduceDictionaryContent } from './reduceDictionaryContent/reduceDictionaryContent';\nexport { extractErrorMessage } from './utils/extractErrorMessage';\nexport { formatLocale, formatPath } from './utils/formatter';\nexport { getExtension } from './utils/getExtention';\nexport { getFileHash } from './utils/getFileHash';\nexport {\n getExtensionFromFormat,\n getFormatFromExtension,\n type Extension,\n type Format,\n} from './utils/getFormatFromExtension';\nexport { kebabCaseToCamelCase } from './utils/kebabCaseToCamelCase';\nexport { parallelize } from './utils/parallelize';\nexport { resolveObjectPromises } from './utils/resolveObjectPromises';\nexport { runOnce } from './utils/runOnce';\nexport { runParallel, type ParallelHandle } from './utils/runParallel';\nexport { sortAlphabetically } from './utils/sortAlphabetically';\nexport { buildAndWatchIntlayer, watch } from './watcher';\nexport {\n detectExportedComponentName,\n formatCode,\n transformJSFile,\n writeContentDeclaration,\n writeJSFile,\n type DictionaryStatus,\n} from './writeContentDeclaration';\n"],"mappings":"AAAA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,mBAAmB;AAC5B,SAAS,gCAAgC;AACzC,SAAS,gCAAgC;AACzC,SAAS,2BAA2B;AACpC,SAAS,yCAAyC;AAClD,SAAS,8CAA8C;AACvD,SAAS,0CAA0C;AACnD,SAAS,2CAA2C;AACpD,SAAS,wBAAwB;AACjC;AAAA,EACE;AAAA,EACA;AAAA,OAIK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,yBAAyB;AAClC,SAAS,iCAAiC;AAC1C,SAAS,uBAAuB;AAChC,SAAS,kCAAkC;AAC3C,SAAS,+BAA+B;AACxC,SAAS,2BAA2B;AACpC,SAAS,cAAc,kBAAkB;AACzC,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,4BAA4B;AACrC,SAAS,mBAAmB;AAC5B,SAAS,6BAA6B;AACtC,SAAS,eAAe;AACxB,SAAS,mBAAwC;AACjD,SAAS,0BAA0B;AACnC,SAAS,uBAAuB,aAAa;AAC7C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;","names":[]}
|
|
@@ -24,6 +24,20 @@ const prepareIntlayer = async (configuration = getConfiguration(), projectRequir
|
|
|
24
24
|
if (clean) {
|
|
25
25
|
cleanOutputDir(configuration);
|
|
26
26
|
}
|
|
27
|
+
await writeConfiguration(configuration);
|
|
28
|
+
const configurationWrittenTime = Date.now();
|
|
29
|
+
appLogger(
|
|
30
|
+
[
|
|
31
|
+
"Configuration written",
|
|
32
|
+
colorize(
|
|
33
|
+
`(${configurationWrittenTime - preparationStartMs}ms)`,
|
|
34
|
+
ANSIColors.GREY_DARK
|
|
35
|
+
)
|
|
36
|
+
],
|
|
37
|
+
{
|
|
38
|
+
isVerbose: true
|
|
39
|
+
}
|
|
40
|
+
);
|
|
27
41
|
const files = listDictionaries(configuration);
|
|
28
42
|
const dictionaries = await loadDictionaries(
|
|
29
43
|
files,
|
|
@@ -36,7 +50,7 @@ const prepareIntlayer = async (configuration = getConfiguration(), projectRequir
|
|
|
36
50
|
"Content loaded",
|
|
37
51
|
colorize(
|
|
38
52
|
[
|
|
39
|
-
dictionaries.remoteDictionaries.length > 0 ? ` (Total: ${dictionariesLoadedTime -
|
|
53
|
+
dictionaries.remoteDictionaries.length > 0 ? ` (Total: ${dictionariesLoadedTime - configurationWrittenTime}ms - Local: ${dictionaries.time.localDictionaries}ms - Remote: ${dictionaries.time.remoteDictionaries}ms)` : `(${dictionariesLoadedTime - configurationWrittenTime}ms)`
|
|
40
54
|
].join(""),
|
|
41
55
|
ANSIColors.GREY_DARK
|
|
42
56
|
)
|
|
@@ -79,20 +93,6 @@ const prepareIntlayer = async (configuration = getConfiguration(), projectRequir
|
|
|
79
93
|
isVerbose: true
|
|
80
94
|
}
|
|
81
95
|
);
|
|
82
|
-
await writeConfiguration(configuration);
|
|
83
|
-
const configurationWrittenTime = Date.now();
|
|
84
|
-
appLogger(
|
|
85
|
-
[
|
|
86
|
-
"Configuration written",
|
|
87
|
-
colorize(
|
|
88
|
-
`(${configurationWrittenTime - moduleAugmentationBuiltTime}ms)`,
|
|
89
|
-
ANSIColors.GREY_DARK
|
|
90
|
-
)
|
|
91
|
-
],
|
|
92
|
-
{
|
|
93
|
-
isVerbose: true
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
96
|
const preparationElapsedMs = Date.now() - preparationStartMs;
|
|
97
97
|
appLogger([`Done`, colorize(`${preparationElapsedMs}ms`, ANSIColors.GREEN)], {
|
|
98
98
|
level: "info",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/prepareIntlayer.ts"],"sourcesContent":["import {\n ANSIColors,\n ESMxCJSRequire,\n type IntlayerConfig,\n colorize,\n getAppLogger,\n getConfiguration,\n} from '@intlayer/config';\nimport packageJson from '@intlayer/config/package.json' with { type: 'json' };\nimport { buildDictionary } from './buildIntlayerDictionary/buildIntlayerDictionary';\nimport { writeRemoteDictionary } from './buildIntlayerDictionary/writeRemoteDictionary';\nimport { cleanOutputDir } from './cleanOutputDir';\nimport { createDictionaryEntryPoint } from './createDictionaryEntryPoint/createDictionaryEntryPoint';\nimport { createModuleAugmentation, createTypes } from './createType/index';\nimport { listDictionaries } from './listDictionariesPath';\nimport { loadDictionaries } from './loadDictionaries/loadDictionaries';\nimport { writeConfiguration } from './writeConfiguration';\n\nexport const prepareIntlayer = async (\n configuration: IntlayerConfig = getConfiguration(),\n projectRequire = ESMxCJSRequire,\n clean = false,\n format: ('cjs' | 'esm')[] = ['cjs', 'esm']\n) => {\n const appLogger = getAppLogger(configuration);\n const preparationStartMs = Date.now();\n\n appLogger([\n 'Preparing Intlayer',\n colorize(`(v${packageJson.version})`, ANSIColors.GREY_DARK),\n ]);\n\n if (clean) {\n cleanOutputDir(configuration);\n }\n\n const files: string[] = listDictionaries(configuration);\n\n const dictionaries = await loadDictionaries(\n files,\n configuration,\n projectRequire\n );\n\n const dictionariesLoadedTime = Date.now();\n\n appLogger(\n [\n 'Content loaded',\n colorize(\n [\n dictionaries.remoteDictionaries.length > 0\n ? ` (Total: ${dictionariesLoadedTime -
|
|
1
|
+
{"version":3,"sources":["../../src/prepareIntlayer.ts"],"sourcesContent":["import {\n ANSIColors,\n ESMxCJSRequire,\n type IntlayerConfig,\n colorize,\n getAppLogger,\n getConfiguration,\n} from '@intlayer/config';\nimport packageJson from '@intlayer/config/package.json' with { type: 'json' };\nimport { buildDictionary } from './buildIntlayerDictionary/buildIntlayerDictionary';\nimport { writeRemoteDictionary } from './buildIntlayerDictionary/writeRemoteDictionary';\nimport { cleanOutputDir } from './cleanOutputDir';\nimport { createDictionaryEntryPoint } from './createDictionaryEntryPoint/createDictionaryEntryPoint';\nimport { createModuleAugmentation, createTypes } from './createType/index';\nimport { listDictionaries } from './listDictionariesPath';\nimport { loadDictionaries } from './loadDictionaries/loadDictionaries';\nimport { writeConfiguration } from './writeConfiguration';\n\nexport const prepareIntlayer = async (\n configuration: IntlayerConfig = getConfiguration(),\n projectRequire = ESMxCJSRequire,\n clean = false,\n format: ('cjs' | 'esm')[] = ['cjs', 'esm']\n) => {\n const appLogger = getAppLogger(configuration);\n const preparationStartMs = Date.now();\n\n appLogger([\n 'Preparing Intlayer',\n colorize(`(v${packageJson.version})`, ANSIColors.GREY_DARK),\n ]);\n\n if (clean) {\n cleanOutputDir(configuration);\n }\n\n await writeConfiguration(configuration);\n\n const configurationWrittenTime = Date.now();\n\n appLogger(\n [\n 'Configuration written',\n colorize(\n `(${configurationWrittenTime - preparationStartMs}ms)`,\n ANSIColors.GREY_DARK\n ),\n ],\n {\n isVerbose: true,\n }\n );\n\n const files: string[] = listDictionaries(configuration);\n\n const dictionaries = await loadDictionaries(\n files,\n configuration,\n projectRequire\n );\n\n const dictionariesLoadedTime = Date.now();\n\n appLogger(\n [\n 'Content loaded',\n colorize(\n [\n dictionaries.remoteDictionaries.length > 0\n ? ` (Total: ${dictionariesLoadedTime - configurationWrittenTime}ms - Local: ${dictionaries.time.localDictionaries}ms - Remote: ${dictionaries.time.remoteDictionaries}ms)`\n : `(${dictionariesLoadedTime - configurationWrittenTime}ms)`,\n ].join(''),\n ANSIColors.GREY_DARK\n ),\n ],\n {\n isVerbose: true,\n }\n );\n\n // Build local dictionaries\n const dictionariesOutput = await buildDictionary(\n [...dictionaries.localDictionaries, ...dictionaries.remoteDictionaries],\n configuration,\n format,\n false\n );\n\n // Write remote dictionaries\n // Used as cache for next fetch\n await writeRemoteDictionary(dictionaries.remoteDictionaries, configuration);\n\n const dictionariesPaths = Object.values(\n dictionariesOutput?.mergedDictionaries ?? {}\n ).map((dictionary) => dictionary.dictionaryPath);\n\n await createTypes(dictionariesPaths);\n\n await createDictionaryEntryPoint(configuration);\n\n const dictionariesBuiltTime = Date.now();\n\n appLogger([\n 'Dictionaries built',\n colorize(\n `(${dictionariesBuiltTime - preparationStartMs}ms)`,\n ANSIColors.GREY_DARK\n ),\n ]);\n\n await createModuleAugmentation(configuration);\n\n const moduleAugmentationBuiltTime = Date.now();\n\n appLogger(\n [\n 'Module augmentation built',\n colorize(\n `(${moduleAugmentationBuiltTime - dictionariesBuiltTime}ms)`,\n ANSIColors.GREY_DARK\n ),\n ],\n {\n isVerbose: true,\n }\n );\n\n const preparationElapsedMs = Date.now() - preparationStartMs;\n appLogger([`Done`, colorize(`${preparationElapsedMs}ms`, ANSIColors.GREEN)], {\n level: 'info',\n isVerbose: true,\n });\n};\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,OAAO,iBAAiB,gCAAgC,KAAK,EAAE,MAAM,OAAO;AAC5E,SAAS,uBAAuB;AAChC,SA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;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAIA,QAAM,sBAAsB,aAAa,oBAAoB,aAAa;AAE1E,QAAM,oBAAoB,OAAO;AAAA,IAC/B,oBAAoB,sBAAsB,CAAC;AAAA,EAC7C,EAAE,IAAI,CAAC,eAAe,WAAW,cAAc;AAE/C,QAAM,YAAY,iBAAiB;AAEnC,QAAM,2BAA2B,aAAa;AAE9C,QAAM,wBAAwB,KAAK,IAAI;AAEvC,YAAU;AAAA,IACR;AAAA,IACA;AAAA,MACE,IAAI,wBAAwB,kBAAkB;AAAA,MAC9C,WAAW;AAAA,IACb;AAAA,EACF,CAAC;AAED,QAAM,yBAAyB,aAAa;AAE5C,QAAM,8BAA8B,KAAK,IAAI;AAE7C;AAAA,IACE;AAAA,MACE;AAAA,MACA;AAAA,QACE,IAAI,8BAA8B,qBAAqB;AAAA,QACvD,WAAW;AAAA,MACb;AAAA,IACF;AAAA,IACA;AAAA,MACE,WAAW;AAAA,IACb;AAAA,EACF;AAEA,QAAM,uBAAuB,KAAK,IAAI,IAAI;AAC1C,YAAU,CAAC,QAAQ,SAAS,GAAG,oBAAoB,MAAM,WAAW,KAAK,CAAC,GAAG;AAAA,IAC3E,OAAO;AAAA,IACP,WAAW;AAAA,EACb,CAAC;AACH;","names":[]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export { extractErrorMessage } from './utils/extractErrorMessage';
|
|
|
21
21
|
export { formatLocale, formatPath } from './utils/formatter';
|
|
22
22
|
export { getExtension } from './utils/getExtention';
|
|
23
23
|
export { getFileHash } from './utils/getFileHash';
|
|
24
|
-
export { getExtensionFromFormat, getFormatFromExtension, } from './utils/getFormatFromExtension';
|
|
24
|
+
export { getExtensionFromFormat, getFormatFromExtension, type Extension, type Format, } from './utils/getFormatFromExtension';
|
|
25
25
|
export { kebabCaseToCamelCase } from './utils/kebabCaseToCamelCase';
|
|
26
26
|
export { parallelize } from './utils/parallelize';
|
|
27
27
|
export { resolveObjectPromises } from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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/chokidar",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.6-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": [
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
"fast-glob": "^3.3.3",
|
|
66
66
|
"simple-git": "^3.28.0",
|
|
67
67
|
"ts-morph": "^27.0.0",
|
|
68
|
-
"@intlayer/
|
|
69
|
-
"@intlayer/core": "6.1.
|
|
70
|
-
"@intlayer/
|
|
71
|
-
"@intlayer/
|
|
72
|
-
"@intlayer/
|
|
73
|
-
"@intlayer/
|
|
68
|
+
"@intlayer/config": "6.1.6-canary.0",
|
|
69
|
+
"@intlayer/core": "6.1.6-canary.0",
|
|
70
|
+
"@intlayer/api": "6.1.6-canary.0",
|
|
71
|
+
"@intlayer/dictionaries-entry": "6.1.6-canary.0",
|
|
72
|
+
"@intlayer/remote-dictionaries-entry": "6.1.6-canary.0",
|
|
73
|
+
"@intlayer/unmerged-dictionaries-entry": "6.1.6-canary.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@changesets/cli": "2.29.7",
|
|
@@ -85,21 +85,19 @@
|
|
|
85
85
|
"tsup": "^8.5.0",
|
|
86
86
|
"typescript": "^5.9.2",
|
|
87
87
|
"vitest": "^3.2.4",
|
|
88
|
-
"@utils/ts-config": "1.0.4",
|
|
89
88
|
"@utils/eslint-config": "1.0.4",
|
|
89
|
+
"@utils/ts-config": "1.0.4",
|
|
90
90
|
"@utils/ts-config-types": "1.0.4",
|
|
91
91
|
"@utils/tsup-config": "1.0.4"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"fast-glob": "^3.3.3",
|
|
95
|
-
"
|
|
96
|
-
"@intlayer/
|
|
97
|
-
"@intlayer/core": "6.1.
|
|
98
|
-
"@intlayer/dictionaries-entry": "6.1.
|
|
99
|
-
"@intlayer/remote-dictionaries-entry": "6.1.
|
|
100
|
-
"intlayer": "6.1.
|
|
101
|
-
"@intlayer/unmerged-dictionaries-entry": "6.1.4",
|
|
102
|
-
"@intlayer/config": "6.1.4"
|
|
95
|
+
"@intlayer/api": "6.1.6-canary.0",
|
|
96
|
+
"@intlayer/config": "6.1.6-canary.0",
|
|
97
|
+
"@intlayer/core": "6.1.6-canary.0",
|
|
98
|
+
"@intlayer/dictionaries-entry": "6.1.6-canary.0",
|
|
99
|
+
"@intlayer/remote-dictionaries-entry": "6.1.6-canary.0",
|
|
100
|
+
"@intlayer/unmerged-dictionaries-entry": "6.1.6-canary.0"
|
|
103
101
|
},
|
|
104
102
|
"engines": {
|
|
105
103
|
"node": ">=14.18"
|