@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.
- package/dist/cjs/cli.cjs +2 -0
- package/dist/cjs/init/index.cjs +28 -0
- package/dist/cjs/init/index.cjs.map +1 -1
- package/dist/cjs/installLSP.cjs +58 -0
- package/dist/cjs/installLSP.cjs.map +1 -0
- package/dist/cjs/utils/buildComponentFilesList.cjs +42 -17
- package/dist/cjs/utils/buildComponentFilesList.cjs.map +1 -1
- package/dist/cjs/watcher.cjs +142 -111
- package/dist/cjs/watcher.cjs.map +1 -1
- package/dist/esm/cli.mjs +2 -1
- package/dist/esm/init/index.mjs +28 -0
- package/dist/esm/init/index.mjs.map +1 -1
- package/dist/esm/installLSP.mjs +55 -0
- package/dist/esm/installLSP.mjs.map +1 -0
- package/dist/esm/utils/buildComponentFilesList.mjs +43 -18
- package/dist/esm/utils/buildComponentFilesList.mjs.map +1 -1
- package/dist/esm/watcher.mjs +144 -113
- package/dist/esm/watcher.mjs.map +1 -1
- package/dist/types/cli.d.ts +2 -1
- package/dist/types/init/index.d.ts.map +1 -1
- package/dist/types/installLSP.d.ts +12 -0
- package/dist/types/installLSP.d.ts.map +1 -0
- package/dist/types/utils/buildComponentFilesList.d.ts +10 -8
- package/dist/types/utils/buildComponentFilesList.d.ts.map +1 -1
- package/dist/types/watcher.d.ts +5 -3
- package/dist/types/watcher.d.ts.map +1 -1
- package/package.json +12 -12
|
@@ -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 `
|
|
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
|
-
* //
|
|
21
|
-
*
|
|
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":";;;;;
|
|
1
|
+
{"version":3,"file":"buildComponentFilesList.d.ts","names":[],"sources":["../../../src/utils/buildComponentFilesList.ts"],"mappings":";;;;;AAoEA;;;;;;;;AAE2B;;;;;;;;;;;cAFd,uBAAA,GACX,MAAA,EAAQ,cAAc,EACtB,cAAA"}
|
package/dist/types/watcher.d.ts
CHANGED
|
@@ -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 =
|
|
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<
|
|
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":"
|
|
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.
|
|
3
|
+
"version": "8.12.0-canary.0",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Scans and builds Intlayer declaration files into dictionaries based on Intlayer configuration.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"intlayer",
|
|
8
|
-
"
|
|
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.
|
|
113
|
-
"@intlayer/config": "8.
|
|
114
|
-
"@intlayer/core": "8.
|
|
115
|
-
"@intlayer/dictionaries-entry": "8.
|
|
116
|
-
"@intlayer/remote-dictionaries-entry": "8.
|
|
117
|
-
"@intlayer/types": "8.
|
|
118
|
-
"@intlayer/unmerged-dictionaries-entry": "8.
|
|
119
|
-
"
|
|
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.
|
|
134
|
+
"vitest": "4.1.8",
|
|
135
135
|
"zod": "4.4.3"
|
|
136
136
|
},
|
|
137
137
|
"engines": {
|