Skip to content

Commit 7bcd823

Browse files
committed
fix: don't use extensions for files in package.json
this will let us use files like index.native.js to provide platform specific implementations
1 parent 00c1aa9 commit 7bcd823

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

templates/common/$package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "<%= project.slug %>",
33
"version": "0.1.0",
44
"description": "<%= project.description %>",
5-
"main": "lib/commonjs/index.js",
6-
"module": "lib/module/index.js",
5+
"main": "lib/commonjs/index",
6+
"module": "lib/module/index",
77
"types": "lib/typescript/src/index.d.ts",
8-
"react-native": "src/index.tsx",
9-
"source": "src/index.tsx",
8+
"react-native": "src/index",
9+
"source": "src/index",
1010
"files": [
1111
"src",
1212
"lib",

templates/expo-library/example/$package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Example app for <%= project.slug %>",
44
"version": "0.0.1",
55
"private": true,
6-
"main": "index.js",
6+
"main": "index",
77
"scripts": {
88
"android": "expo start --android",
99
"ios": "expo start --ios",

0 commit comments

Comments
 (0)