Skip to content

Commit dad16d4

Browse files
committed
Update package.json for compatibility with create-expo
- Added `description` and `repository` fields to enhance metadata. - Removed the `private` field to allow package publication. - Adapted to `create-expo` behavior, which modifies `package.json` by: - Removing existing `description`, `tags`, and `repository` fields. - Standardizing `version` to `1.0.0`. - Setting `private` to `true`. - Updating `name` to match the project name. - Changes ensure `expo-template-redux-typescript` can be published and utilized with `create-expo`.
1 parent 21fbaad commit dad16d4

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"semi": false,
3-
"arrowParens": "avoid"
2+
"arrowParens": "avoid",
3+
"semi": false
44
}

packages/expo-template-redux-typescript/babel.config.cts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { ConfigFunction } from "@babel/core"
22

33
const config: ConfigFunction = api => {
44
api.cache.forever()
5+
56
return {
67
presets: ["babel-preset-expo"],
78
}

packages/expo-template-redux-typescript/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "expo-template-redux-typescript",
33
"version": "1.0.0",
4+
"description": "The official Redux+TS template for Expo",
45
"main": "node_modules/expo/AppEntry.js",
56
"scripts": {
67
"start": "expo start",
@@ -13,6 +14,10 @@
1314
"test": "jest",
1415
"type-check": "tsc --noEmit"
1516
},
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/reduxjs/redux-templates.git"
20+
},
1621
"dependencies": {
1722
"@reduxjs/toolkit": "^2.0.1",
1823
"expo": "~49.0.21",
@@ -39,6 +44,5 @@
3944
"prettier": "^3.2.1",
4045
"ts-node": "^10.9.2",
4146
"typescript": "^5.3.3"
42-
},
43-
"private": true
47+
}
4448
}

0 commit comments

Comments
 (0)