create-react-native-library 0.48.2 → 0.48.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-react-native-library",
3
- "version": "0.48.2",
3
+ "version": "0.48.4",
4
4
  "description": "CLI to scaffold React Native libraries",
5
5
  "keywords": [
6
6
  "react-native",
@@ -65,5 +65,5 @@
65
65
  "@types/validate-npm-package-name": "^3.0.3",
66
66
  "@types/yargs": "^17.0.10"
67
67
  },
68
- "gitHead": "1684036e7f673374733acfd007b3db372026e27b"
68
+ "gitHead": "8ff17fc6cdab28a63f1de06b381726e2132e5691"
69
69
  }
@@ -76,7 +76,7 @@
76
76
  "registry": "https://registry.npmjs.org/"
77
77
  },
78
78
  "devDependencies": {
79
- "@commitlint/config-conventional": "^17.0.2",
79
+ "@commitlint/config-conventional": "^19.6.0",
80
80
  "@evilmartians/lefthook": "^1.5.0",
81
81
  <% if (example === 'vanilla' && (project.moduleConfig === 'turbo-modules' || project.viewConfig === 'fabric-view')) { -%>
82
82
  "@react-native-community/cli": "15.0.0-alpha.2",
@@ -85,7 +85,7 @@
85
85
  "@release-it/conventional-changelog": "^9.0.2",
86
86
  "@types/jest": "^29.5.5",
87
87
  "@types/react": "^18.2.44",
88
- "commitlint": "^17.0.2",
88
+ "commitlint": "^19.6.1",
89
89
  "del-cli": "^5.1.0",
90
90
  "eslint": "^8.51.0",
91
91
  "eslint-config-prettier": "^9.0.0",
@@ -115,7 +115,7 @@
115
115
  <% if (project.moduleConfig === 'nitro-modules') { -%>
116
116
  "react-native": "*",
117
117
  "react-native-nitro-modules": "^<%- versions.nitroModules %>"
118
- <% } else { -%>
118
+ <% } else { -%>
119
119
  "react-native": "*"
120
120
  <% } -%>
121
121
  },
@@ -150,7 +150,9 @@
150
150
  },
151
151
  "plugins": {
152
152
  "@release-it/conventional-changelog": {
153
- "preset": "angular"
153
+ "preset": {
154
+ "name": "angular"
155
+ }
154
156
  }
155
157
  }
156
158
  },
@@ -224,7 +226,7 @@
224
226
  },
225
227
  "codegenConfig": {
226
228
  "name": "RN<%- project.name -%><%- project.viewConfig !== null ? 'View': '' -%>Spec",
227
- "type": "<%- project.viewConfig !== null ? 'components': 'modules' -%>",
229
+ "type": "<%- project.viewConfig !== null ? 'all': 'modules' -%>",
228
230
  "jsSrcsDir": "src",
229
231
  "outputDir": {
230
232
  "ios": "ios/generated",
@@ -6,7 +6,7 @@
6
6
  <% if (project.arch === 'new') { -%>
7
7
  "codegenConfig": {
8
8
  "name": "RN<%- project.name -%><%- project.viewConfig !== null ? 'View': '' -%>Spec",
9
- "type": <%- project.viewConfig !== null ? '"components"': '"modules"' %>,
9
+ "type": <%- project.viewConfig !== null ? '"all"': '"modules"' %>,
10
10
  "jsSrcsDir": "src"
11
11
  },
12
12
  <% } -%>
@@ -1,7 +1,6 @@
1
1
  require "json"
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
- folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
4
 
6
5
  Pod::Spec.new do |s|
7
6
  s.name = "<%- project.name -%>"
@@ -30,29 +29,11 @@ Pod::Spec.new do |s|
30
29
  add_nitrogen_files(s)
31
30
  <% } -%>
32
31
 
33
- # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
34
- # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
35
- if respond_to?(:install_modules_dependencies, true)
36
- install_modules_dependencies(s)
37
- else
38
- s.dependency "React-Core"
39
-
40
- # Don't install the dependencies when we run `pod install` in the old architecture.
41
- if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
42
- s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
43
- s.pod_target_xcconfig = {
44
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
45
- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
46
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
47
- }
48
- <% if (project.viewConfig !== null) { -%>
49
- s.dependency "React-RCTFabric"
50
- <% } -%>
51
- s.dependency "React-Codegen"
52
- s.dependency "RCT-Folly"
53
- s.dependency "RCTRequired"
54
- s.dependency "RCTTypeSafety"
55
- s.dependency "ReactCommon/turbomodule/core"
56
- end
57
- end
32
+ # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
33
+ # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
34
+ if respond_to?(:install_modules_dependencies, true)
35
+ install_modules_dependencies(s)
36
+ else
37
+ s.dependency "React-Core"
38
+ end
58
39
  end