Skip to content

Commit f128b02

Browse files
authored
feat: add changesets (#155)
1 parent 61f3ec5 commit f128b02

File tree

15 files changed

+524
-1666
lines changed

15 files changed

+524
-1666
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": true,
5+
"fixed": [
6+
[
7+
"react-native-bottom-tabs",
8+
"@bottom-tabs/react-navigation"
9+
]
10+
],
11+
"linked": [],
12+
"access": "public",
13+
"baseBranch": "main",
14+
"updateInternalDependencies": "patch",
15+
"ignore": [
16+
"react-native-bottom-tabs-docs",
17+
"react-native-bottom-tabs-example",
18+
"example-expo"
19+
]
20+
}

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: ./.github/actions/setup
3838

3939
- name: Build package
40-
run: yarn prepare
40+
run: yarn build
4141

4242
build-android:
4343
runs-on: ubuntu-latest
@@ -51,7 +51,7 @@ jobs:
5151
uses: ./.github/actions/setup
5252

5353
- name: Build package
54-
run: yarn prepare
54+
run: yarn build
5555

5656
- name: Cache turborepo for Android
5757
uses: actions/cache@v3
@@ -110,7 +110,7 @@ jobs:
110110
uses: ./.github/actions/setup
111111

112112
- name: Build package
113-
run: yarn prepare
113+
run: yarn build
114114

115115
- name: Cache turborepo for Android new arch
116116
uses: actions/cache@v3
@@ -169,7 +169,7 @@ jobs:
169169
uses: ./.github/actions/setup
170170

171171
- name: Build package
172-
run: yarn prepare
172+
run: yarn build
173173

174174
- name: Cache turborepo for iOS
175175
uses: actions/cache@v3
@@ -212,7 +212,7 @@ jobs:
212212
uses: ./.github/actions/setup
213213

214214
- name: Build package
215-
run: yarn prepare
215+
run: yarn build
216216

217217
- name: Cache turborepo for iOS
218218
uses: actions/cache@v3

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"lint": "turbo run lint",
1313
"test": "turbo run test",
1414
"typecheck": "turbo run typecheck",
15-
"prepare": "turbo run prepare",
16-
"release": "turbo run release",
15+
"build": "turbo run build",
1716
"build:android": "turbo run build:android",
1817
"build:android:fabric": "turbo run build:android:fabric",
1918
"build:ios": "turbo run build:ios",
2019
"build:ios-expo": "turbo run build:ios-expo",
21-
"build:android-expo": "turbo run build:android-expo"
20+
"build:android-expo": "turbo run build:android-expo",
21+
"publish-packages": "turbo run build lint && changeset version && changeset publish"
2222
},
2323
"resolutions": {
2424
"@types/react": "^18.2.44"
@@ -54,5 +54,8 @@
5454
"tabWidth": 2,
5555
"trailingComma": "es5",
5656
"useTabs": false
57+
},
58+
"dependencies": {
59+
"@changesets/cli": "^2.27.10"
5760
}
5861
}

packages/react-native-bottom-tabs/package.json

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@
4545
],
4646
"scripts": {
4747
"test": "jest",
48-
"typecheck": "tsc",
48+
"typecheck": "tsc -b",
4949
"lint": "eslint \"**/*.{js,ts,tsx}\"",
50-
"prepare": "bob build",
51-
"release": "release-it"
50+
"build": "bob build"
5251
},
5352
"keywords": [
5453
"react-native",
@@ -78,25 +77,12 @@
7877
"react": "18.3.1",
7978
"react-native": "0.75.4",
8079
"react-native-builder-bob": "^0.32.1",
81-
"release-it": "^15.0.0",
8280
"typescript": "^5.2.2"
8381
},
8482
"peerDependencies": {
8583
"react": "*",
8684
"react-native": "*"
8785
},
88-
"release-it": {
89-
"git": {
90-
"commitMessage": "chore: release ${version}",
91-
"tagName": "v${version}"
92-
},
93-
"npm": {
94-
"publish": true
95-
},
96-
"github": {
97-
"release": true
98-
}
99-
},
10086
"react-native-builder-bob": {
10187
"source": "src",
10288
"output": "lib",

packages/react-native-bottom-tabs/src/TabView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import type { TabViewItems } from './TabViewNativeComponent';
33
import {
4-
ColorValue,
4+
type ColorValue,
55
Image,
66
Platform,
77
StyleSheet,

packages/react-native-bottom-tabs/src/TabViewAdapter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import NativeTabView, { TabViewProps } from './TabViewNativeComponent';
1+
import NativeTabView, { type TabViewProps } from './TabViewNativeComponent';
22

33
const TabViewAdapter = (props: TabViewProps) => {
44
return <NativeTabView {...props} />;

packages/react-native-bottom-tabs/src/expo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
ConfigPlugin,
2+
type ConfigPlugin,
33
createRunOncePlugin,
44
withAndroidStyles,
55
} from '@expo/config-plugins';

packages/react-native-bottom-tabs/tsconfig.build.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
"extends": "./tsconfig",
33
"compilerOptions": {
44
"paths": {}
5-
},
6-
"exclude": ["lib"]
5+
}
76
}

packages/react-navigation/package.json

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@
3030
],
3131
"scripts": {
3232
"test": "jest",
33-
"typecheck": "tsc",
33+
"typecheck": "tsc -b",
3434
"lint": "eslint \"**/*.{js,ts,tsx}\"",
35-
"prepare": "bob build",
36-
"release": "release-it"
35+
"build": "bob build"
3736
},
3837
"keywords": [
3938
"react-native",
@@ -64,7 +63,6 @@
6463
"react-native": "0.75.4",
6564
"react-native-bottom-tabs": "*",
6665
"react-native-builder-bob": "^0.32.1",
67-
"release-it": "^15.0.0",
6866
"typescript": "^5.2.2"
6967
},
7068
"dependencies": {
@@ -76,26 +74,13 @@
7674
"react-native": "*",
7775
"react-native-bottom-tabs": "*"
7876
},
79-
"packageManager": "yarn@3.6.1",
8077
"jest": {
8178
"preset": "react-native",
8279
"modulePathIgnorePatterns": [
8380
"<rootDir>/example/node_modules",
8481
"<rootDir>/lib/"
8582
]
8683
},
87-
"release-it": {
88-
"git": {
89-
"commitMessage": "chore: release ${version}",
90-
"tagName": "v${version}"
91-
},
92-
"npm": {
93-
"publish": true
94-
},
95-
"github": {
96-
"release": true
97-
}
98-
},
9984
"react-native-builder-bob": {
10085
"source": "src",
10186
"output": "lib",

packages/react-navigation/tsconfig.build.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
"extends": "./tsconfig",
33
"compilerOptions": {
44
"paths": {}
5-
},
6-
"exclude": ["lib"]
5+
}
76
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"extends": "../../tsconfig",
3+
"references": [
4+
{ "path": "../react-native-bottom-tabs" },
5+
],
36
"compilerOptions": {
47
"rootDir": ".",
58
"outDir": "./lib/typescript",
6-
"paths": {}
79
}
810
}

tsconfig.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44
"react-native-bottom-tabs": ["./packages/react-native-bottom-tabs/src/index"],
55
"@bottom-tabs/react-navigation": ["./packages/react-navigation/src/index"],
66
},
7+
"composite": true,
78
"allowUnreachableCode": false,
89
"allowUnusedLabels": false,
910
"esModuleInterop": true,
1011
"forceConsistentCasingInFileNames": true,
1112
"jsx": "react-jsx",
12-
"lib": ["ESNext"],
13-
"module": "ESNext",
14-
"moduleResolution": "Bundler",
15-
"noEmit": true,
13+
"lib": ["esnext"],
14+
"module": "esnext",
15+
"moduleResolution": "node",
1616
"noFallthroughCasesInSwitch": true,
1717
"noImplicitReturns": true,
1818
"noImplicitUseStrict": false,
1919
"noStrictGenericChecks": false,
20-
"noUncheckedIndexedAccess": true,
2120
"noUnusedLocals": true,
2221
"noUnusedParameters": true,
2322
"resolveJsonModule": true,
2423
"skipLibCheck": true,
2524
"strict": true,
26-
"target": "ESNext"
25+
"target": "esnext",
26+
"verbatimModuleSyntax": true
2727
},
2828
"exclude": ["packages/*/lib"]
2929
}

turbo.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,17 @@
22
"$schema": "https://turbo.build/schema.json",
33
"tasks": {
44
"lint": {
5-
"dependsOn": ["prepare"],
5+
"dependsOn": ["build"],
66
"inputs": ["**/*.ts", "**/*.tsx", "**/*.js"]
77
},
88
"typecheck": {
9-
"dependsOn": ["prepare"],
9+
"dependsOn": ["build"],
1010
"inputs": ["**/*.ts", "**/*.tsx"]
1111
},
1212
"test": {},
13-
"release": {
14-
"inputs": ["package.json", "lib/**"]
15-
},
16-
"prepare": {
17-
"dependsOn": ["^prepare"],
18-
"outputs": ["lib/**"],
19-
"inputs": ["src/**/*.ts", "src/**/*.tsx"]
13+
"build": {
14+
"dependsOn": ["^build"],
15+
"outputs": ["lib/**"]
2016
},
2117
"build:android": {
2218
"env": ["JAVA_HOME", "ANDROID_NDK", "ANDROID_SDK", "ANDROID_HOME"],

0 commit comments

Comments
 (0)