@intlayer/cli 7.3.1 → 7.3.2-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 +0 -2
- package/dist/cjs/listContentDeclaration.cjs +6 -6
- package/dist/cjs/listContentDeclaration.cjs.map +1 -1
- package/dist/esm/listContentDeclaration.mjs +6 -6
- package/dist/esm/listContentDeclaration.mjs.map +1 -1
- package/dist/types/translation-alignment/computeSimilarity.d.ts.map +1 -1
- package/package.json +12 -11
package/README.md
CHANGED
|
@@ -24,8 +24,6 @@
|
|
|
24
24
|
<a href="https://github.com/aymericzip/intlayer/blob/main/LICENSE" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/license/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="license"/></a>
|
|
25
25
|
<a href="https://github.com/aymericzip/intlayer/commits/main" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/last-commit/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="last commit"/>
|
|
26
26
|
</a>
|
|
27
|
-
<a href="https://bountyhub.dev/bounties?repo=intlayer" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/badge/Bounties-on%20BountyHub-yellow?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="Bounties on BountyHub"/>
|
|
28
|
-
</a>
|
|
29
27
|
</p>
|
|
30
28
|
|
|
31
29
|

|
|
@@ -16,17 +16,17 @@ const listContentDeclarationRows = (options) => {
|
|
|
16
16
|
const listContentDeclaration = (options) => {
|
|
17
17
|
const appLogger = (0, __intlayer_config.getAppLogger)((0, __intlayer_config.getConfiguration)(options?.configOptions), { config: { prefix: "" } });
|
|
18
18
|
const rows = listContentDeclarationRows(options);
|
|
19
|
-
const lines = rows.map((
|
|
20
|
-
(0, __intlayer_config.colon)(` - ${(0, __intlayer_config.colorizeKey)(
|
|
21
|
-
colSize: rows.map((
|
|
19
|
+
const lines = rows.map((row) => [
|
|
20
|
+
(0, __intlayer_config.colon)(` - ${(0, __intlayer_config.colorizeKey)(row.key)}`, {
|
|
21
|
+
colSize: rows.map((row$1) => row$1.key.length),
|
|
22
22
|
maxSize: 60
|
|
23
23
|
}),
|
|
24
24
|
" - ",
|
|
25
|
-
(0, __intlayer_chokidar.formatPath)(
|
|
25
|
+
(0, __intlayer_chokidar.formatPath)(row.path)
|
|
26
26
|
].join(""));
|
|
27
27
|
appLogger(`Content declaration files:`);
|
|
28
|
-
lines.forEach((
|
|
29
|
-
appLogger(
|
|
28
|
+
lines.forEach((line) => {
|
|
29
|
+
appLogger(line, { level: "info" });
|
|
30
30
|
});
|
|
31
31
|
appLogger(`Total content declaration files: ${(0, __intlayer_config.colorizeNumber)(rows.length)}`);
|
|
32
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listContentDeclaration.cjs","names":["
|
|
1
|
+
{"version":3,"file":"listContentDeclaration.cjs","names":["row"],"sources":["../../src/listContentDeclaration.ts"],"sourcesContent":["import { relative } from 'node:path';\nimport { formatPath } from '@intlayer/chokidar';\nimport {\n colon,\n colorizeKey,\n colorizeNumber,\n type GetConfigurationOptions,\n getAppLogger,\n getConfiguration,\n} from '@intlayer/config';\nimport { getUnmergedDictionaries } from '@intlayer/unmerged-dictionaries-entry';\n\ntype ListContentDeclarationOptions = {\n configOptions?: GetConfigurationOptions;\n};\n\nexport const listContentDeclarationRows = (\n options?: ListContentDeclarationOptions\n) => {\n const config = getConfiguration(options?.configOptions);\n\n const unmergedDictionariesRecord = getUnmergedDictionaries(config);\n\n const rows = Object.values(unmergedDictionariesRecord)\n .flat()\n .map((dictionary) => ({\n key: dictionary.key ?? '',\n path: relative(config.content.baseDir, dictionary.filePath ?? 'Remote'),\n }));\n return rows;\n};\n\nexport const listContentDeclaration = (\n options?: ListContentDeclarationOptions\n) => {\n const config = getConfiguration(options?.configOptions);\n const appLogger = getAppLogger(config, {\n config: {\n prefix: '',\n },\n });\n\n const rows = listContentDeclarationRows(options);\n\n const lines = rows.map((row) =>\n [\n colon(` - ${colorizeKey(row.key)}`, {\n colSize: rows.map((row) => row.key.length),\n maxSize: 60,\n }),\n ' - ',\n formatPath(row.path),\n ].join('')\n );\n\n appLogger(`Content declaration files:`);\n\n lines.forEach((line) => {\n appLogger(line, {\n level: 'info',\n });\n });\n\n appLogger(`Total content declaration files: ${colorizeNumber(rows.length)}`);\n};\n"],"mappings":";;;;;;;AAgBA,MAAa,8BACX,YACG;CACH,MAAM,iDAA0B,SAAS,cAAc;CAEvD,MAAM,iGAAqD,OAAO;AAQlE,QANa,OAAO,OAAO,2BAA2B,CACnD,MAAM,CACN,KAAK,gBAAgB;EACpB,KAAK,WAAW,OAAO;EACvB,8BAAe,OAAO,QAAQ,SAAS,WAAW,YAAY,SAAS;EACxE,EAAE;;AAIP,MAAa,0BACX,YACG;CAEH,MAAM,wFAD0B,SAAS,cAAc,EAChB,EACrC,QAAQ,EACN,QAAQ,IACT,EACF,CAAC;CAEF,MAAM,OAAO,2BAA2B,QAAQ;CAEhD,MAAM,QAAQ,KAAK,KAAK,QACtB;+BACQ,yCAAkB,IAAI,IAAI,IAAI;GAClC,SAAS,KAAK,KAAK,UAAQA,MAAI,IAAI,OAAO;GAC1C,SAAS;GACV,CAAC;EACF;sCACW,IAAI,KAAK;EACrB,CAAC,KAAK,GAAG,CACX;AAED,WAAU,6BAA6B;AAEvC,OAAM,SAAS,SAAS;AACtB,YAAU,MAAM,EACd,OAAO,QACR,CAAC;GACF;AAEF,WAAU,0EAAmD,KAAK,OAAO,GAAG"}
|
|
@@ -15,17 +15,17 @@ const listContentDeclarationRows = (options) => {
|
|
|
15
15
|
const listContentDeclaration = (options) => {
|
|
16
16
|
const appLogger = getAppLogger(getConfiguration(options?.configOptions), { config: { prefix: "" } });
|
|
17
17
|
const rows = listContentDeclarationRows(options);
|
|
18
|
-
const lines = rows.map((
|
|
19
|
-
colon(` - ${colorizeKey(
|
|
20
|
-
colSize: rows.map((
|
|
18
|
+
const lines = rows.map((row) => [
|
|
19
|
+
colon(` - ${colorizeKey(row.key)}`, {
|
|
20
|
+
colSize: rows.map((row$1) => row$1.key.length),
|
|
21
21
|
maxSize: 60
|
|
22
22
|
}),
|
|
23
23
|
" - ",
|
|
24
|
-
formatPath(
|
|
24
|
+
formatPath(row.path)
|
|
25
25
|
].join(""));
|
|
26
26
|
appLogger(`Content declaration files:`);
|
|
27
|
-
lines.forEach((
|
|
28
|
-
appLogger(
|
|
27
|
+
lines.forEach((line) => {
|
|
28
|
+
appLogger(line, { level: "info" });
|
|
29
29
|
});
|
|
30
30
|
appLogger(`Total content declaration files: ${colorizeNumber(rows.length)}`);
|
|
31
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listContentDeclaration.mjs","names":["
|
|
1
|
+
{"version":3,"file":"listContentDeclaration.mjs","names":["row"],"sources":["../../src/listContentDeclaration.ts"],"sourcesContent":["import { relative } from 'node:path';\nimport { formatPath } from '@intlayer/chokidar';\nimport {\n colon,\n colorizeKey,\n colorizeNumber,\n type GetConfigurationOptions,\n getAppLogger,\n getConfiguration,\n} from '@intlayer/config';\nimport { getUnmergedDictionaries } from '@intlayer/unmerged-dictionaries-entry';\n\ntype ListContentDeclarationOptions = {\n configOptions?: GetConfigurationOptions;\n};\n\nexport const listContentDeclarationRows = (\n options?: ListContentDeclarationOptions\n) => {\n const config = getConfiguration(options?.configOptions);\n\n const unmergedDictionariesRecord = getUnmergedDictionaries(config);\n\n const rows = Object.values(unmergedDictionariesRecord)\n .flat()\n .map((dictionary) => ({\n key: dictionary.key ?? '',\n path: relative(config.content.baseDir, dictionary.filePath ?? 'Remote'),\n }));\n return rows;\n};\n\nexport const listContentDeclaration = (\n options?: ListContentDeclarationOptions\n) => {\n const config = getConfiguration(options?.configOptions);\n const appLogger = getAppLogger(config, {\n config: {\n prefix: '',\n },\n });\n\n const rows = listContentDeclarationRows(options);\n\n const lines = rows.map((row) =>\n [\n colon(` - ${colorizeKey(row.key)}`, {\n colSize: rows.map((row) => row.key.length),\n maxSize: 60,\n }),\n ' - ',\n formatPath(row.path),\n ].join('')\n );\n\n appLogger(`Content declaration files:`);\n\n lines.forEach((line) => {\n appLogger(line, {\n level: 'info',\n });\n });\n\n appLogger(`Total content declaration files: ${colorizeNumber(rows.length)}`);\n};\n"],"mappings":";;;;;;AAgBA,MAAa,8BACX,YACG;CACH,MAAM,SAAS,iBAAiB,SAAS,cAAc;CAEvD,MAAM,6BAA6B,wBAAwB,OAAO;AAQlE,QANa,OAAO,OAAO,2BAA2B,CACnD,MAAM,CACN,KAAK,gBAAgB;EACpB,KAAK,WAAW,OAAO;EACvB,MAAM,SAAS,OAAO,QAAQ,SAAS,WAAW,YAAY,SAAS;EACxE,EAAE;;AAIP,MAAa,0BACX,YACG;CAEH,MAAM,YAAY,aADH,iBAAiB,SAAS,cAAc,EAChB,EACrC,QAAQ,EACN,QAAQ,IACT,EACF,CAAC;CAEF,MAAM,OAAO,2BAA2B,QAAQ;CAEhD,MAAM,QAAQ,KAAK,KAAK,QACtB;EACE,MAAM,MAAM,YAAY,IAAI,IAAI,IAAI;GAClC,SAAS,KAAK,KAAK,UAAQA,MAAI,IAAI,OAAO;GAC1C,SAAS;GACV,CAAC;EACF;EACA,WAAW,IAAI,KAAK;EACrB,CAAC,KAAK,GAAG,CACX;AAED,WAAU,6BAA6B;AAEvC,OAAM,SAAS,SAAS;AACtB,YAAU,MAAM,EACd,OAAO,QACR,CAAC;GACF;AAEF,WAAU,oCAAoC,eAAe,KAAK,OAAO,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeSimilarity.d.ts","names":[],"sources":["../../../src/translation-alignment/computeSimilarity.ts"],"sourcesContent":[],"mappings":";cACa,oEAGV;AAHU,cAkBA,wBAfV,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"computeSimilarity.d.ts","names":[],"sources":["../../../src/translation-alignment/computeSimilarity.ts"],"sourcesContent":[],"mappings":";cACa,oEAGV;AAHU,cAkBA,wBAfV,EAAA,CAAG,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,aAAA,CAAA,EAAA,MAAA,EAAA,GAAA,MAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/cli",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.2-canary.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Provides uniform command-line interface scripts for Intlayer, used in packages like intlayer-cli and intlayer.",
|
|
6
6
|
"keywords": [
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"./package.json"
|
|
50
50
|
],
|
|
51
51
|
"scripts": {
|
|
52
|
+
"_prepublish": "cp -f ../../../README.md ./README.md",
|
|
52
53
|
"build": "tsdown --config tsdown.config.ts",
|
|
53
54
|
"build:ci": "tsdown --config tsdown.config.ts",
|
|
54
55
|
"clean": "rimraf ./dist .turbo",
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
"format:fix": "biome format --write .",
|
|
58
59
|
"lint": "biome lint .",
|
|
59
60
|
"lint:fix": "biome lint --write .",
|
|
60
|
-
"prepublish": "
|
|
61
|
+
"prepublish": "echo prepublish temporally disabled to avoid rewrite readme",
|
|
61
62
|
"publish": "bun publish || true",
|
|
62
63
|
"publish:canary": "bun publish --access public --tag canary || true",
|
|
63
64
|
"publish:latest": "bun publish --access public --tag latest || true",
|
|
@@ -67,19 +68,19 @@
|
|
|
67
68
|
},
|
|
68
69
|
"dependencies": {
|
|
69
70
|
"@clack/prompts": "^0.11.0",
|
|
70
|
-
"@intlayer/api": "7.3.
|
|
71
|
-
"@intlayer/chokidar": "7.3.
|
|
72
|
-
"@intlayer/config": "7.3.
|
|
73
|
-
"@intlayer/dictionaries-entry": "7.3.
|
|
74
|
-
"@intlayer/remote-dictionaries-entry": "7.3.
|
|
75
|
-
"@intlayer/types": "7.3.
|
|
76
|
-
"@intlayer/unmerged-dictionaries-entry": "7.3.
|
|
71
|
+
"@intlayer/api": "7.3.2-canary.0",
|
|
72
|
+
"@intlayer/chokidar": "7.3.2-canary.0",
|
|
73
|
+
"@intlayer/config": "7.3.2-canary.0",
|
|
74
|
+
"@intlayer/dictionaries-entry": "7.3.2-canary.0",
|
|
75
|
+
"@intlayer/remote-dictionaries-entry": "7.3.2-canary.0",
|
|
76
|
+
"@intlayer/types": "7.3.2-canary.0",
|
|
77
|
+
"@intlayer/unmerged-dictionaries-entry": "7.3.2-canary.0",
|
|
77
78
|
"commander": "14.0.1",
|
|
78
79
|
"eventsource": "3.0.7",
|
|
79
80
|
"fast-glob": "3.3.3"
|
|
80
81
|
},
|
|
81
82
|
"devDependencies": {
|
|
82
|
-
"@intlayer/core": "7.3.
|
|
83
|
+
"@intlayer/core": "7.3.2-canary.0",
|
|
83
84
|
"@types/node": "24.10.1",
|
|
84
85
|
"@utils/ts-config": "1.0.4",
|
|
85
86
|
"@utils/ts-config-types": "1.0.4",
|
|
@@ -90,7 +91,7 @@
|
|
|
90
91
|
"vitest": "4.0.13"
|
|
91
92
|
},
|
|
92
93
|
"peerDependencies": {
|
|
93
|
-
"@intlayer/ai": "7.3.
|
|
94
|
+
"@intlayer/ai": "7.3.2-canary.0"
|
|
94
95
|
},
|
|
95
96
|
"peerDependenciesMeta": {
|
|
96
97
|
"@intlayer/ai": {
|