@intlayer/chokidar 8.11.2 → 8.12.0-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.
@@ -5,20 +5,22 @@ import { IntlayerConfig } from "@intlayer/types/config";
5
5
  * Builds a deduplicated list of absolute file paths matching the given patterns.
6
6
  *
7
7
  * Handles multiple root directories (deduplicates overlapping roots), exclude
8
- * patterns, negation patterns embedded in `transformPattern`, and optional
8
+ * patterns, negation patterns embedded in `traversePattern`, and optional
9
9
  * dot-file inclusion.
10
10
  *
11
+ * Special case: `codeDir` entries that live inside `node_modules` (e.g. a
12
+ * design-system package installed as a workspace dependency) are scanned as
13
+ * their own explicit roots. They are NOT collapsed into the project root so
14
+ * the `*\/node_modules\/**` exclusion does not silently drop them.
15
+ *
11
16
  * @example
12
17
  * // Single root with excludes
13
- * const files = buildComponentFilesList({
14
- * transformPattern: 'src/**\/*.{ts,tsx}',
15
- * excludePattern: ['**\/node_modules\/**'],
16
- * baseDir: '/path/to/project',
17
- * });
18
+ * const files = buildComponentFilesList(config);
18
19
  *
19
20
  * @example
20
- * // Multiple roots (e.g. baseDir + codeDir), dot files included
21
- * const files = buildComponentFilesList(config, ['**\/node_modules\/**']);
21
+ * // Design-system package inside node_modules is still scanned
22
+ * // intlayer.config.ts: { content: { codeDir: ['node_modules/my-ds/src'] } }
23
+ * const files = buildComponentFilesList(config);
22
24
  */
23
25
  declare const buildComponentFilesList: (config: IntlayerConfig, excludePattern?: string[]) => string[];
24
26
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"buildComponentFilesList.d.ts","names":[],"sources":["../../../src/utils/buildComponentFilesList.ts"],"mappings":";;;;;AAkDA;;;;;;;;AAE2B;;;;;;;;;cAFd,uBAAA,GACX,MAAA,EAAQ,cAAc,EACtB,cAAA"}
1
+ {"version":3,"file":"buildComponentFilesList.d.ts","names":[],"sources":["../../../src/utils/buildComponentFilesList.ts"],"mappings":";;;;;AAoEA;;;;;;;;AAE2B;;;;;;;;;;;cAFd,uBAAA,GACX,MAAA,EAAQ,cAAc,EACtB,cAAA"}
@@ -1,14 +1,16 @@
1
1
  import { IntlayerConfig } from "@intlayer/types/config";
2
2
  import { GetConfigurationOptions } from "@intlayer/config/node";
3
- import { ChokidarOptions } from "chokidar";
4
3
 
5
4
  //#region src/watcher.d.ts
6
- type WatchOptions = ChokidarOptions & {
5
+ type WatchOptions = {
7
6
  configuration?: IntlayerConfig;
8
7
  configOptions?: GetConfigurationOptions;
9
8
  skipPrepare?: boolean;
9
+ persistent?: boolean;
10
10
  };
11
- declare const watch: (options?: WatchOptions) => Promise<import("chokidar").FSWatcher>;
11
+ declare const watch: (options?: WatchOptions) => Promise<{
12
+ unsubscribe: () => Promise<void>;
13
+ }>;
12
14
  declare const buildAndWatchIntlayer: (options?: WatchOptions) => Promise<void>;
13
15
  //#endregion
14
16
  export { buildAndWatchIntlayer, watch };
@@ -1 +1 @@
1
- {"version":3,"file":"watcher.d.ts","names":[],"sources":["../../src/watcher.ts"],"mappings":";;;;;KAwDK,YAAA,GAAe,eAAA;EAClB,aAAA,GAAgB,cAAA;EAChB,aAAA,GAAgB,uBAAA;EAChB,WAAA;AAAA;AAAA,cAIW,KAAA,GAAe,OAAA,GAAU,YAAA,KAAY,OAAA,oBAAA,SAAA;AAAA,cAyQrC,qBAAA,GAA+B,OAAA,GAAU,YAAA,KAAY,OAAA"}
1
+ {"version":3,"file":"watcher.d.ts","names":[],"sources":["../../src/watcher.ts"],"mappings":";;;;KAuDK,YAAA;EACH,aAAA,GAAgB,cAAA;EAChB,aAAA,GAAgB,uBAAuB;EACvC,WAAA;EACA,UAAA;AAAA;AAAA,cAsBW,KAAA,GAAe,OAAA,GAAU,YAAA,KAAY,OAAA;;;cAkTrC,qBAAA,GAA+B,OAAA,GAAU,YAAA,KAAY,OAAA"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@intlayer/chokidar",
3
- "version": "8.11.2",
3
+ "version": "8.12.0-canary.0",
4
4
  "private": false,
5
- "description": "Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.",
5
+ "description": "Scans and builds Intlayer declaration files into dictionaries based on Intlayer configuration.",
6
6
  "keywords": [
7
7
  "intlayer",
8
- "chokidar",
8
+ "watcher",
9
9
  "application",
10
10
  "transpile",
11
11
  "typescript",
@@ -109,14 +109,14 @@
109
109
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
110
110
  },
111
111
  "dependencies": {
112
- "@intlayer/api": "8.11.2",
113
- "@intlayer/config": "8.11.2",
114
- "@intlayer/core": "8.11.2",
115
- "@intlayer/dictionaries-entry": "8.11.2",
116
- "@intlayer/remote-dictionaries-entry": "8.11.2",
117
- "@intlayer/types": "8.11.2",
118
- "@intlayer/unmerged-dictionaries-entry": "8.11.2",
119
- "chokidar": "5.0.0",
112
+ "@intlayer/api": "8.12.0-canary.0",
113
+ "@intlayer/config": "8.12.0-canary.0",
114
+ "@intlayer/core": "8.12.0-canary.0",
115
+ "@intlayer/dictionaries-entry": "8.12.0-canary.0",
116
+ "@intlayer/remote-dictionaries-entry": "8.12.0-canary.0",
117
+ "@intlayer/types": "8.12.0-canary.0",
118
+ "@intlayer/unmerged-dictionaries-entry": "8.12.0-canary.0",
119
+ "@parcel/watcher": "2.5.6",
120
120
  "defu": "6.1.7",
121
121
  "fast-glob": "3.3.3",
122
122
  "recast": "^0.23.11",
@@ -131,7 +131,7 @@
131
131
  "rimraf": "6.1.3",
132
132
  "tsdown": "0.22.1",
133
133
  "typescript": "6.0.3",
134
- "vitest": "4.1.7",
134
+ "vitest": "4.1.8",
135
135
  "zod": "4.4.3"
136
136
  },
137
137
  "engines": {