create-react-native-library 0.49.1 → 0.49.2

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.49.1",
3
+ "version": "0.49.2",
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": "23f5ac7c2c3bccfa697d551486e0ba56cf528a30"
68
+ "gitHead": "f1db236b9017176dd568ce89e2296be6b1a67e3c"
69
69
  }
@@ -3,18 +3,11 @@
3
3
  "version": "0.1.0",
4
4
  "description": "<%- project.description %>",
5
5
  "source": "./src/index.tsx",
6
- "main": "./lib/commonjs/index.js",
7
- "module": "./lib/module/index.js",
6
+ "main": "./lib/module/index.js",
8
7
  "exports": {
9
8
  ".": {
10
- "import": {
11
- "types": "./lib/typescript/module/src/index.d.ts",
12
- "default": "./lib/module/index.js"
13
- },
14
- "require": {
15
- "types": "./lib/typescript/commonjs/src/index.d.ts",
16
- "default": "./lib/commonjs/index.js"
17
- }
9
+ "types": "./lib/typescript/src/index.d.ts",
10
+ "default": "./lib/module/index.js"
18
11
  },
19
12
  "./package.json": "./package.json"
20
13
  },
@@ -186,12 +179,6 @@
186
179
  "esm": true
187
180
  }
188
181
  ],
189
- [
190
- "commonjs",
191
- {
192
- "esm": true
193
- }
194
- ],
195
182
  [
196
183
  "typescript",
197
184
  {
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
19
19
  s.source_files = "ios/**/*.{h,m,mm,swift}"
20
20
  <% } else if (project.arch !== "legacy") { -%>
21
21
  s.source_files = "ios/**/*.{h,m,mm,cpp}"
22
- s.private_header_files = "ios/generated/**/*.h"
22
+ s.private_header_files = "ios/**/*.h"
23
23
  <% } else { -%>
24
24
  s.source_files = "ios/**/*.{h,m,mm}"
25
25
  <% } -%>
@@ -5,7 +5,7 @@
5
5
  <% } -%>
6
6
 
7
7
  <% if (project.arch === 'new') { -%>
8
- #import "generated/RN<%- project.name -%>Spec/RN<%- project.name -%>Spec.h"
8
+ #import <<%- project.name -%>/RN<%- project.name -%>Spec.h>
9
9
 
10
10
  @interface <%- project.name -%> : NSObject <Native<%- project.name -%>Spec>
11
11
  <% } else { -%>
@@ -1,9 +1,9 @@
1
1
  #import "<%- project.name -%>View.h"
2
2
 
3
- #import "generated/RN<%- project.name -%>ViewSpec/ComponentDescriptors.h"
4
- #import "generated/RN<%- project.name -%>ViewSpec/EventEmitters.h"
5
- #import "generated/RN<%- project.name -%>ViewSpec/Props.h"
6
- #import "generated/RN<%- project.name -%>ViewSpec/RCTComponentViewHelpers.h"
3
+ #import <<%- project.name -%>/ComponentDescriptors.h>
4
+ #import <<%- project.name -%>/EventEmitters.h>
5
+ #import <<%- project.name -%>/Props.h>
6
+ #import <<%- project.name -%>/RCTComponentViewHelpers.h>
7
7
 
8
8
  #import "RCTFabricComponentsPlugins.h"
9
9