@react-native/codegen
Advanced tools
@@ -17,4 +17,4 @@ /** | ||
| const fs = require('fs'); | ||
| const glob = require('glob'); | ||
| const path = require('path'); | ||
| const {globSync} = require('tinyglobby'); | ||
| const flowParser = new FlowParser(); | ||
@@ -59,9 +59,7 @@ const typescriptParser = new TypeScriptParser(); | ||
| } | ||
| const filePattern = path.sep === '\\' ? file.replace(/\\/g, '/') : file; | ||
| return glob.sync(`${filePattern}/**/*{,.fb}.{js,ts,tsx}`, { | ||
| nodir: true, | ||
| // TODO: This will remove the need of slash substitution above for Windows, | ||
| // but it requires glob@v9+; with the package currenlty relying on | ||
| // glob@7.1.1; and flow-typed repo not having definitions for glob@9+. | ||
| // windowsPathsNoEscape: true, | ||
| return globSync('**/*{,.fb}.{js,ts,tsx}', { | ||
| expandDirectories: false, | ||
| onlyFiles: true, | ||
| absolute: true, | ||
| cwd: file, | ||
| }); | ||
@@ -68,0 +66,0 @@ }) |
+2
-2
| { | ||
| "name": "@react-native/codegen", | ||
| "version": "0.84.0-nightly-20251203-a5e6addc6", | ||
| "version": "0.84.0-nightly-20251204-5bb3a6d68", | ||
| "description": "Code generation tools for React Native", | ||
@@ -34,6 +34,6 @@ "license": "MIT", | ||
| "@babel/parser": "^7.25.3", | ||
| "glob": "^7.1.1", | ||
| "hermes-parser": "0.32.0", | ||
| "invariant": "^2.2.4", | ||
| "nullthrows": "^1.1.1", | ||
| "tinyglobby": "^0.2.15", | ||
| "yargs": "^17.6.2" | ||
@@ -40,0 +40,0 @@ }, |
Sorry, the diff of this file is not supported yet
1093799
-0.05%16781
-0.01%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed