@intlayer/cli 4.1.0 → 4.1.2
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 +1 -2
- package/dist/cjs/build.cjs +1 -3
- package/dist/cjs/build.cjs.map +1 -1
- package/dist/esm/build.mjs +2 -4
- package/dist/esm/build.mjs.map +1 -1
- package/dist/types/build.d.ts +1 -1
- package/dist/types/build.d.ts.map +1 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<a href="https://
|
|
2
|
+
<a href="https://intlayer.org">
|
|
3
3
|
<img src="https://raw.githubusercontent.com/aymericzip/intlayer/572ae9c9acafb74307b81530c1931a8e98990aef/docs/assets/logo.png" width="500" alt="intlayer" />
|
|
4
4
|
</a>
|
|
5
5
|
</div>
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
<a href="https://npmjs.org/package/intlayer">
|
|
15
15
|
<img alt="types included" src="https://badgen.net/npm/types/intlayer?labelColor=49516F&color=8994BC"
|
|
16
16
|
/>
|
|
17
|
-
</a>
|
|
18
17
|
</div>
|
|
19
18
|
|
|
20
19
|
# @intlayer/cli: Use the scripts provided by the intlayer CLI
|
package/dist/cjs/build.cjs
CHANGED
|
@@ -22,9 +22,7 @@ __export(build_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(build_exports);
|
|
24
24
|
var import_chokidar = require("@intlayer/chokidar");
|
|
25
|
-
const build = (options) => {
|
|
26
|
-
(0, import_chokidar.watch)({ persistent: options?.watch ?? false });
|
|
27
|
-
};
|
|
25
|
+
const build = async (options) => await (0, import_chokidar.buildAndWatchIntlayer)({ persistent: options?.watch ?? false });
|
|
28
26
|
// Annotate the CommonJS export names for ESM import in node:
|
|
29
27
|
0 && (module.exports = {
|
|
30
28
|
build
|
package/dist/cjs/build.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/build.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/build.ts"],"sourcesContent":["import { buildAndWatchIntlayer } from '@intlayer/chokidar';\n\ntype BuildOptions = { watch?: boolean };\n\n/**\n * Get locales dictionaries .content.{json|ts|tsx|js|jsx|mjs|cjs} and build the JSON dictionaries in the .intlayer directory.\n * Watch mode available to get the change in the .content.{json|ts|tsx|js|jsx|mjs|cjs}\n */\nexport const build = async (options?: BuildOptions) =>\n await buildAndWatchIntlayer({ persistent: options?.watch ?? false });\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAsC;AAQ/B,MAAM,QAAQ,OAAO,YAC1B,UAAM,uCAAsB,EAAE,YAAY,SAAS,SAAS,MAAM,CAAC;","names":[]}
|
package/dist/esm/build.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const build = (options) => {
|
|
3
|
-
watch({ persistent: options?.watch ?? false });
|
|
4
|
-
};
|
|
1
|
+
import { buildAndWatchIntlayer } from "@intlayer/chokidar";
|
|
2
|
+
const build = async (options) => await buildAndWatchIntlayer({ persistent: options?.watch ?? false });
|
|
5
3
|
export {
|
|
6
4
|
build
|
|
7
5
|
};
|
package/dist/esm/build.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/build.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/build.ts"],"sourcesContent":["import { buildAndWatchIntlayer } from '@intlayer/chokidar';\n\ntype BuildOptions = { watch?: boolean };\n\n/**\n * Get locales dictionaries .content.{json|ts|tsx|js|jsx|mjs|cjs} and build the JSON dictionaries in the .intlayer directory.\n * Watch mode available to get the change in the .content.{json|ts|tsx|js|jsx|mjs|cjs}\n */\nexport const build = async (options?: BuildOptions) =>\n await buildAndWatchIntlayer({ persistent: options?.watch ?? false });\n"],"mappings":"AAAA,SAAS,6BAA6B;AAQ/B,MAAM,QAAQ,OAAO,YAC1B,MAAM,sBAAsB,EAAE,YAAY,SAAS,SAAS,MAAM,CAAC;","names":[]}
|
package/dist/types/build.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ type BuildOptions = {
|
|
|
5
5
|
* Get locales dictionaries .content.{json|ts|tsx|js|jsx|mjs|cjs} and build the JSON dictionaries in the .intlayer directory.
|
|
6
6
|
* Watch mode available to get the change in the .content.{json|ts|tsx|js|jsx|mjs|cjs}
|
|
7
7
|
*/
|
|
8
|
-
export declare const build: (options?: BuildOptions) => void
|
|
8
|
+
export declare const build: (options?: BuildOptions) => Promise<void>;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=build.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/build.ts"],"names":[],"mappings":"AAEA,KAAK,YAAY,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAExC;;;GAGG;AACH,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/build.ts"],"names":[],"mappings":"AAEA,KAAK,YAAY,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAExC;;;GAGG;AACH,eAAO,MAAM,KAAK,aAAoB,YAAY,kBACoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/cli",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
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": [
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"commander": "^13.0.0",
|
|
52
52
|
"fast-glob": "^3.3.3",
|
|
53
53
|
"p-limit": "^3.1.0",
|
|
54
|
-
"@intlayer/api": "4.1.
|
|
55
|
-
"@intlayer/
|
|
56
|
-
"@intlayer/
|
|
57
|
-
"@intlayer/
|
|
58
|
-
"@intlayer/
|
|
54
|
+
"@intlayer/api": "4.1.2",
|
|
55
|
+
"@intlayer/config": "4.1.2",
|
|
56
|
+
"@intlayer/chokidar": "4.1.2",
|
|
57
|
+
"@intlayer/editor": "4.1.2",
|
|
58
|
+
"@intlayer/dictionaries-entry": "4.1.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/node": "^22.10.6",
|
|
@@ -67,18 +67,18 @@
|
|
|
67
67
|
"tsc-alias": "^1.8.10",
|
|
68
68
|
"tsup": "^8.3.5",
|
|
69
69
|
"typescript": "^5.7.3",
|
|
70
|
+
"@intlayer/core": "4.1.2",
|
|
70
71
|
"@utils/eslint-config": "1.0.4",
|
|
71
72
|
"@utils/ts-config": "1.0.4",
|
|
72
73
|
"@utils/tsup-config": "1.0.4",
|
|
73
|
-
"@intlayer/core": "4.1.0",
|
|
74
74
|
"@utils/ts-config-types": "1.0.4"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@intlayer/api": "4.1.
|
|
78
|
-
"@intlayer/chokidar": "4.1.
|
|
79
|
-
"@intlayer/
|
|
80
|
-
"@intlayer/
|
|
81
|
-
"@intlayer/editor": "4.1.
|
|
77
|
+
"@intlayer/api": "4.1.2",
|
|
78
|
+
"@intlayer/chokidar": "4.1.2",
|
|
79
|
+
"@intlayer/config": "4.1.2",
|
|
80
|
+
"@intlayer/dictionaries-entry": "^4.1.2",
|
|
81
|
+
"@intlayer/editor": "4.1.2"
|
|
82
82
|
},
|
|
83
83
|
"bug": {
|
|
84
84
|
"url": "https://github.com/aymericzip/intlayer/issues"
|