Skip to content

Commit

Permalink
fix: don't use extensions for files in package.json
Browse files Browse the repository at this point in the history
this will let us use files like index.native.js to provide platform specific implementations
  • Loading branch information
satya164 committed May 21, 2020
1 parent 00c1aa9 commit 7bcd823
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions templates/common/$package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "<%= project.slug %>",
"version": "0.1.0",
"description": "<%= project.description %>",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/src/index.d.ts",
"react-native": "src/index.tsx",
"source": "src/index.tsx",
"react-native": "src/index",
"source": "src/index",
"files": [
"src",
"lib",
Expand Down
2 changes: 1 addition & 1 deletion templates/expo-library/example/$package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Example app for <%= project.slug %>",
"version": "0.0.1",
"private": true,
"main": "index.js",
"main": "index",
"scripts": {
"android": "expo start --android",
"ios": "expo start --ios",
Expand Down

0 comments on commit 7bcd823

Please sign in to comment.