@intlayer/cli 4.1.1 → 4.1.3

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.
@@ -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
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/build.ts"],"sourcesContent":["import { watch } 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 = (options?: BuildOptions) => {\n watch({ persistent: options?.watch ?? false });\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAsB;AAQf,MAAM,QAAQ,CAAC,YAA2B;AAC/C,6BAAM,EAAE,YAAY,SAAS,SAAS,MAAM,CAAC;AAC/C;","names":[]}
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":[]}
@@ -1,7 +1,5 @@
1
- import { watch } from "@intlayer/chokidar";
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
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/build.ts"],"sourcesContent":["import { watch } 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 = (options?: BuildOptions) => {\n watch({ persistent: options?.watch ?? false });\n};\n"],"mappings":"AAAA,SAAS,aAAa;AAQf,MAAM,QAAQ,CAAC,YAA2B;AAC/C,QAAM,EAAE,YAAY,SAAS,SAAS,MAAM,CAAC;AAC/C;","names":[]}
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":[]}
@@ -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,aAAc,YAAY,SAE3C,CAAC"}
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.1",
3
+ "version": "4.1.3",
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.1",
55
- "@intlayer/chokidar": "4.1.1",
56
- "@intlayer/config": "4.1.1",
57
- "@intlayer/dictionaries-entry": "4.1.1",
58
- "@intlayer/editor": "4.1.1"
54
+ "@intlayer/api": "4.1.3",
55
+ "@intlayer/chokidar": "4.1.3",
56
+ "@intlayer/dictionaries-entry": "4.1.3",
57
+ "@intlayer/editor": "4.1.3",
58
+ "@intlayer/config": "4.1.3"
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.1",
70
+ "@intlayer/core": "4.1.3",
71
71
  "@utils/eslint-config": "1.0.4",
72
72
  "@utils/ts-config": "1.0.4",
73
73
  "@utils/ts-config-types": "1.0.4",
74
74
  "@utils/tsup-config": "1.0.4"
75
75
  },
76
76
  "peerDependencies": {
77
- "@intlayer/api": "4.1.1",
78
- "@intlayer/config": "4.1.1",
79
- "@intlayer/dictionaries-entry": "^4.1.1",
80
- "@intlayer/editor": "4.1.1",
81
- "@intlayer/chokidar": "4.1.1"
77
+ "@intlayer/api": "4.1.3",
78
+ "@intlayer/chokidar": "4.1.3",
79
+ "@intlayer/config": "4.1.3",
80
+ "@intlayer/dictionaries-entry": "^4.1.3",
81
+ "@intlayer/editor": "4.1.3"
82
82
  },
83
83
  "bug": {
84
84
  "url": "https://github.com/aymericzip/intlayer/issues"