@react-native/codegen 0.77.0-nightly-20240917-51673e41a → 0.77.0-nightly-20240918-bebd6531b

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.
@@ -403,3 +403,11 @@ type NativeModuleParamOnlyTypeAnnotation = NativeModuleFunctionTypeAnnotation;
403
403
  type NativeModuleReturnOnlyTypeAnnotation =
404
404
  | NativeModulePromiseTypeAnnotation
405
405
  | VoidTypeAnnotation;
406
+
407
+ // Used by compatibility check which needs to handle all possible types
408
+ // This will eventually also include the union of all view manager types
409
+ export type CompleteTypeAnnotation =
410
+ | NativeModuleTypeAnnotation
411
+ | NativeModuleFunctionTypeAnnotation
412
+ | NullableTypeAnnotation<NativeModuleTypeAnnotation>
413
+ | UnsafeAnyTypeAnnotation;
@@ -16,7 +16,6 @@
16
16
 
17
17
  const RNCodegen = require('../../generators/RNCodegen.js');
18
18
  const fs = require('fs');
19
- const mkdirp = require('mkdirp');
20
19
  const args = process.argv.slice(2);
21
20
  if (args.length < 3) {
22
21
  throw new Error(
@@ -34,7 +33,9 @@ const schemaText = fs.readFileSync(schemaPath, 'utf-8');
34
33
  if (schemaText == null) {
35
34
  throw new Error(`Can't find schema at ${schemaPath}`);
36
35
  }
37
- mkdirp.sync(outputDirectory);
36
+ fs.mkdirSync(outputDirectory, {
37
+ recursive: true,
38
+ });
38
39
  let schema;
39
40
  try {
40
41
  schema = JSON.parse(schemaText);
@@ -16,7 +16,6 @@
16
16
 
17
17
  const RNCodegen = require('../../generators/RNCodegen.js');
18
18
  const fs = require('fs');
19
- const mkdirp = require('mkdirp');
20
19
 
21
20
  const args = process.argv.slice(2);
22
21
  if (args.length < 3) {
@@ -39,7 +38,7 @@ if (schemaText == null) {
39
38
  throw new Error(`Can't find schema at ${schemaPath}`);
40
39
  }
41
40
 
42
- mkdirp.sync(outputDirectory);
41
+ fs.mkdirSync(outputDirectory, {recursive: true});
43
42
 
44
43
  let schema;
45
44
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/codegen",
3
- "version": "0.77.0-nightly-20240917-51673e41a",
3
+ "version": "0.77.0-nightly-20240918-bebd6531b",
4
4
  "description": "Code generation tools for React Native",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,7 +34,6 @@
34
34
  "hermes-parser": "0.23.1",
35
35
  "invariant": "^2.2.4",
36
36
  "jscodeshift": "^0.14.0",
37
- "mkdirp": "^0.5.1",
38
37
  "nullthrows": "^1.1.1",
39
38
  "yargs": "^17.6.2"
40
39
  },