Skip to content

Commit 46d70a6

Browse files
committed
chore: remove typescript references
1 parent beaea34 commit 46d70a6

File tree

9 files changed

+7
-176
lines changed

9 files changed

+7
-176
lines changed

.circleci/config.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,6 @@ jobs:
5050
command: |
5151
yarn lint
5252
53-
typescript:
54-
executor: default
55-
steps:
56-
- attach_project
57-
- run:
58-
name: Typecheck files
59-
command: |
60-
yarn typescript
61-
6253
unit-tests:
6354
executor: default
6455
steps:
@@ -87,9 +78,6 @@ workflows:
8778
- lint:
8879
requires:
8980
- install-dependencies
90-
- typescript:
91-
requires:
92-
- install-dependencies
9381
- unit-tests:
9482
requires:
9583
- install-dependencies

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ npm run example ios
4848
```
4949

5050

51-
Make sure your code passes TypeScript and ESLint. Run the following to verify:
51+
Make sure your code passes ESLint. Run the following to verify:
5252

5353
```sh
54-
npm run typescript
5554
npm run lint
5655
```
5756

example/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
[
88
'module-resolver',
99
{
10-
extensions: ['.tsx', '.ts', '.js', '.json'],
10+
extensions: ['.js', '.jsx', '.json'],
1111
alias: {
1212
[pak.name]: path.join(__dirname, '..', pak.source),
1313
},

lefthook.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@ pre-commit:
33
commands:
44
lint:
55
files: git diff --name-only @{push}
6-
glob: "*.{js,ts,jsx,tsx}"
6+
glob: "*.{js,jsx}"
77
run: npx eslint {files}
8-
types:
9-
files: git diff --name-only @{push}
10-
glob: "*.{js,ts, jsx, tsx}"
11-
run: npx tsc --noEmit
128
commit-msg:
139
parallel: true
1410
commands:

package-lock.json

Lines changed: 1 addition & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "test",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
7-
"types": "lib/typescript/index.d.ts",
87
"react-native": "src/index",
98
"source": "src/index",
109
"files": [
@@ -14,7 +13,6 @@
1413
"ios",
1514
"cpp",
1615
"react-native-key-command.podspec",
17-
"!lib/typescript/example",
1816
"!android/build",
1917
"!ios/build",
2018
"!**/__tests__",
@@ -23,8 +21,7 @@
2321
],
2422
"scripts": {
2523
"test": "jest",
26-
"typescript": "tsc --noEmit",
27-
"lint": "eslint \"**/*.{js,ts,tsx}\"",
24+
"lint": "eslint \"**/*.{js}\"",
2825
"prepare": "bob build",
2926
"release": "release-it",
3027
"example": "npm run --prefix example"
@@ -50,9 +47,6 @@
5047
"@commitlint/config-conventional": "^17.0.2",
5148
"@lwc/eslint-plugin-lwc": "^1.4.0",
5249
"@release-it/conventional-changelog": "^5.0.0",
53-
"@types/jest": "^28.1.2",
54-
"@types/react": "~17.0.21",
55-
"@types/react-native": "0.68.0",
5650
"commitlint": "^17.0.2",
5751
"eslint": "^8.4.1",
5852
"eslint-config-expensify": "^2.0.29",
@@ -63,11 +57,7 @@
6357
"react": "17.0.2",
6458
"react-native": "0.68.2",
6559
"react-native-builder-bob": "^0.18.3",
66-
"release-it": "^15.0.0",
67-
"typescript": "^4.5.2"
68-
},
69-
"resolutions": {
70-
"@types/react": "17.0.21"
60+
"release-it": "^15.0.0"
7161
},
7262
"peerDependencies": {
7363
"react": "*",
@@ -125,13 +115,7 @@
125115
"output": "lib",
126116
"targets": [
127117
"commonjs",
128-
"module",
129-
[
130-
"typescript",
131-
{
132-
"project": "tsconfig.build.json"
133-
}
134-
]
118+
"module"
135119
]
136120
}
137121
}
File renamed without changes.

tsconfig.build.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

tsconfig.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)