@intlayer/chokidar 8.6.10 → 8.7.0-canary.1

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.
@@ -20,7 +20,7 @@ const config = {
20
20
  * - "prefix-no-default": Prefix all except the default locale (e.g., /dashboard, /fr/dashboard).
21
21
  * - "prefix-all": Prefix all locales (e.g., /en/dashboard, /fr/dashboard).
22
22
  * - "no-prefix": No locale in the URL.
23
- * - "search-params": Use ?locale=...
23
+ * - "search-params": Use search params to define the locale (e.g., /dashboard/?locale=en, /dashboard/?locale=fr)
24
24
  * Default: "prefix-no-default"
25
25
  */
26
26
  mode: 'prefix-no-default',
@@ -36,15 +36,6 @@ const config = {
36
36
  */
37
37
  applicationURL: 'http://localhost:3000',
38
38
  },
39
- dictionary: {
40
- /**
41
- * Controls how dictionaries are imported.
42
- * - "static": Statically imported at build time.
43
- * - "dynamic": Dynamically imported using Suspense.
44
- * - "fetch": Fetched dynamically via the live sync API.
45
- */
46
- importMode: 'static',
47
- },
48
39
  ai: {
49
40
  /**
50
41
  * AI provider to use.
@@ -108,6 +99,31 @@ const config = {
108
99
  */
109
100
  saveComponents: false,
110
101
  },
102
+ dictionary: {
103
+ /**
104
+ * Controls how dictionaries are imported.
105
+ * - "static": Statically imported at build time.
106
+ * - "dynamic": Dynamically imported using Suspense.
107
+ * - "fetch": Fetched dynamically via the live sync API.
108
+ */
109
+ importMode: 'static',
110
+ },
111
+ build: {
112
+ /**
113
+ * Minify the dictionaries to reduce the bundle size.
114
+ */
115
+ minify: true,
116
+
117
+ /**
118
+ * Purge the unused keys in a dictionaries
119
+ */
120
+ purge: true,
121
+
122
+ /**
123
+ * Indicates if the build should check TypeScript types
124
+ */
125
+ checkTypes: false,
126
+ }
111
127
  };
112
128
 
113
129
  module.exports = config;
@@ -16,7 +16,7 @@
16
16
  * - "prefix-no-default": Prefix all except the default locale (e.g., /dashboard, /fr/dashboard).
17
17
  * - "prefix-all": Prefix all locales (e.g., /en/dashboard, /fr/dashboard).
18
18
  * - "no-prefix": No locale in the URL.
19
- * - "search-params": Use ?locale=...
19
+ * - "search-params": Use search params to define the locale (e.g., /dashboard/?locale=en, /dashboard/?locale=fr)
20
20
  * Default: "prefix-no-default"
21
21
  */
22
22
  "mode": "prefix-no-default"
@@ -31,15 +31,6 @@
31
31
  */
32
32
  "applicationURL": "http://localhost:3000"
33
33
  },
34
- "build": {
35
- /**
36
- * Controls how dictionaries are imported.
37
- * - "static": Statically imported at build time.
38
- * - "dynamic": Dynamically imported using Suspense.
39
- * - "fetch": Fetched dynamically via the live sync API.
40
- */
41
- "importMode": "static"
42
- },
43
34
  "ai": {
44
35
  /**
45
36
  * AI provider to use.
@@ -68,5 +59,30 @@
68
59
  * If true, the compiler will rewrite the component file on disk.
69
60
  */
70
61
  "saveComponents": false
62
+ },
63
+ "dictionary": {
64
+ /**
65
+ * Controls how dictionaries are imported.
66
+ * - "static": Statically imported at build time.
67
+ * - "dynamic": Dynamically imported using Suspense.
68
+ * - "fetch": Fetched dynamically via the live sync API.
69
+ */
70
+ "importMode": "static"
71
+ },
72
+ "build": {
73
+ /**
74
+ * Minify the dictionaries to reduce the bundle size.
75
+ */
76
+ "minify": true,
77
+
78
+ /**
79
+ * Purge the unused keys in a dictionaries
80
+ */
81
+ "purge": true,
82
+
83
+ /**
84
+ * Indicates if the build should check TypeScript types
85
+ */
86
+ "checkTypes": false
71
87
  }
72
88
  }
@@ -20,7 +20,7 @@ const config = {
20
20
  * - "prefix-no-default": Prefix all except the default locale (e.g., /dashboard, /fr/dashboard).
21
21
  * - "prefix-all": Prefix all locales (e.g., /en/dashboard, /fr/dashboard).
22
22
  * - "no-prefix": No locale in the URL.
23
- * - "search-params": Use ?locale=...
23
+ * - "search-params": Use search params to define the locale (e.g., /dashboard/?locale=en, /dashboard/?locale=fr)
24
24
  * Default: "prefix-no-default"
25
25
  */
26
26
  mode: 'prefix-no-default',
@@ -36,15 +36,6 @@ const config = {
36
36
  */
37
37
  applicationURL: 'http://localhost:3000',
38
38
  },
39
- dictionary: {
40
- /**
41
- * Controls how dictionaries are imported.
42
- * - "static": Statically imported at build time.
43
- * - "dynamic": Dynamically imported using Suspense.
44
- * - "fetch": Fetched dynamically via the live sync API.
45
- */
46
- importMode: 'static',
47
- },
48
39
  ai: {
49
40
  /**
50
41
  * AI provider to use.
@@ -108,6 +99,31 @@ const config = {
108
99
  */
109
100
  saveComponents: false,
110
101
  },
102
+ dictionary: {
103
+ /**
104
+ * Controls how dictionaries are imported.
105
+ * - "static": Statically imported at build time.
106
+ * - "dynamic": Dynamically imported using Suspense.
107
+ * - "fetch": Fetched dynamically via the live sync API.
108
+ */
109
+ importMode: 'static',
110
+ },
111
+ build: {
112
+ /**
113
+ * Minify the dictionaries to reduce the bundle size.
114
+ */
115
+ minify: true,
116
+
117
+ /**
118
+ * Purge the unused keys in a dictionaries
119
+ */
120
+ purge: true,
121
+
122
+ /**
123
+ * Indicates if the build should check TypeScript types
124
+ */
125
+ checkTypes: false,
126
+ }
111
127
  };
112
128
 
113
129
  export default config;
@@ -19,7 +19,7 @@ const config: IntlayerConfig = {
19
19
  * - "prefix-no-default": Prefix all except the default locale (e.g., /dashboard, /fr/dashboard).
20
20
  * - "prefix-all": Prefix all locales (e.g., /en/dashboard, /fr/dashboard).
21
21
  * - "no-prefix": No locale in the URL.
22
- * - "search-params": Use ?locale=...
22
+ * - "search-params": Use search params to define the locale (e.g., /dashboard/?locale=en, /dashboard/?locale=fr)
23
23
  * Default: "prefix-no-default"
24
24
  */
25
25
  mode: 'prefix-no-default',
@@ -35,15 +35,6 @@ const config: IntlayerConfig = {
35
35
  */
36
36
  applicationURL: 'http://localhost:3000',
37
37
  },
38
- dictionary: {
39
- /**
40
- * Controls how dictionaries are imported.
41
- * - "static": Statically imported at build time.
42
- * - "dynamic": Dynamically imported using Suspense.
43
- * - "fetch": Fetched dynamically via the live sync API.
44
- */
45
- importMode: 'static',
46
- },
47
38
  ai: {
48
39
  /**
49
40
  * AI provider to use.
@@ -107,6 +98,31 @@ const config: IntlayerConfig = {
107
98
  */
108
99
  saveComponents: false,
109
100
  },
101
+ dictionary: {
102
+ /**
103
+ * Controls how dictionaries are imported.
104
+ * - "static": Statically imported at build time.
105
+ * - "dynamic": Dynamically imported using Suspense.
106
+ * - "fetch": Fetched dynamically via the live sync API.
107
+ */
108
+ importMode: 'static',
109
+ },
110
+ build: {
111
+ /**
112
+ * Minify the dictionaries to reduce the bundle size.
113
+ */
114
+ minify: true,
115
+
116
+ /**
117
+ * Purge the unused keys in a dictionaries
118
+ */
119
+ purge: true,
120
+
121
+ /**
122
+ * Indicates if the build should check TypeScript types
123
+ */
124
+ checkTypes: false,
125
+ }
110
126
  };
111
127
 
112
128
  export default config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/chokidar",
3
- "version": "8.6.10",
3
+ "version": "8.7.0-canary.1",
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": [
@@ -109,15 +109,15 @@
109
109
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
110
110
  },
111
111
  "dependencies": {
112
- "@intlayer/api": "8.6.10",
113
- "@intlayer/config": "8.6.10",
114
- "@intlayer/core": "8.6.10",
115
- "@intlayer/dictionaries-entry": "8.6.10",
116
- "@intlayer/remote-dictionaries-entry": "8.6.10",
117
- "@intlayer/types": "8.6.10",
118
- "@intlayer/unmerged-dictionaries-entry": "8.6.10",
112
+ "@intlayer/api": "8.7.0-canary.1",
113
+ "@intlayer/config": "8.7.0-canary.1",
114
+ "@intlayer/core": "8.7.0-canary.1",
115
+ "@intlayer/dictionaries-entry": "8.7.0-canary.1",
116
+ "@intlayer/remote-dictionaries-entry": "8.7.0-canary.1",
117
+ "@intlayer/types": "8.7.0-canary.1",
118
+ "@intlayer/unmerged-dictionaries-entry": "8.7.0-canary.1",
119
119
  "chokidar": "3.6.0",
120
- "defu": "6.1.6",
120
+ "defu": "6.1.7",
121
121
  "fast-glob": "3.3.3",
122
122
  "recast": "^0.23.11",
123
123
  "simple-git": "3.33.0",
@@ -131,7 +131,7 @@
131
131
  "rimraf": "6.1.3",
132
132
  "tsdown": "0.21.7",
133
133
  "typescript": "6.0.2",
134
- "vitest": "4.1.2",
134
+ "vitest": "4.1.4",
135
135
  "zod": "4.3.6"
136
136
  },
137
137
  "engines": {