@translation-cms/sync 1.2.47 → 1.2.48
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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Recursively walk a directory, yielding paths of source files.
|
|
6
6
|
* Skips directories listed in `excludedDirs` and files whose extension
|
|
7
|
-
* is not in `sourceExtensions`.
|
|
7
|
+
* is not in `sourceExtensions`. Also skips Storybook story files (.stories.tsx, etc).
|
|
8
8
|
*/
|
|
9
9
|
export declare function walkFiles(dir: string, excludedDirs: Set<string>, sourceExtensions: Set<string>): Generator<string>;
|
|
10
10
|
//# sourceMappingURL=file-walker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-walker.d.ts","sourceRoot":"","sources":["../../../src/core/scanner-internals/file-walker.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH;;;;GAIG;AACH,wBAAiB,SAAS,CACtB,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,EACzB,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,GAC9B,SAAS,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"file-walker.d.ts","sourceRoot":"","sources":["../../../src/core/scanner-internals/file-walker.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH;;;;GAIG;AACH,wBAAiB,SAAS,CACtB,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,EACzB,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,GAC9B,SAAS,CAAC,MAAM,CAAC,CAiBnB"}
|
|
@@ -6,7 +6,7 @@ import path from 'path';
|
|
|
6
6
|
/**
|
|
7
7
|
* Recursively walk a directory, yielding paths of source files.
|
|
8
8
|
* Skips directories listed in `excludedDirs` and files whose extension
|
|
9
|
-
* is not in `sourceExtensions`.
|
|
9
|
+
* is not in `sourceExtensions`. Also skips Storybook story files (.stories.tsx, etc).
|
|
10
10
|
*/
|
|
11
11
|
export function* walkFiles(dir, excludedDirs, sourceExtensions) {
|
|
12
12
|
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
@@ -16,7 +16,9 @@ export function* walkFiles(dir, excludedDirs, sourceExtensions) {
|
|
|
16
16
|
yield* walkFiles(fullPath, excludedDirs, sourceExtensions);
|
|
17
17
|
continue;
|
|
18
18
|
}
|
|
19
|
-
if (entry.isFile() &&
|
|
19
|
+
if (entry.isFile() &&
|
|
20
|
+
sourceExtensions.has(path.extname(entry.name)) &&
|
|
21
|
+
!entry.name.includes('.stories.'))
|
|
20
22
|
yield fullPath;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-walker.js","sourceRoot":"","sources":["../../../src/core/scanner-internals/file-walker.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB;;;;GAIG;AACH,MAAM,SAAS,CAAC,CAAC,SAAS,CACtB,GAAW,EACX,YAAyB,EACzB,gBAA6B;IAE7B,KAAK,MAAM,KAAK,IAAI,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAC/D,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QAE5C,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;YACtB,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;gBAC7B,KAAK,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC;YAC/D,SAAS;QACb,CAAC;QAED,
|
|
1
|
+
{"version":3,"file":"file-walker.js","sourceRoot":"","sources":["../../../src/core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