Skip to content

Commit

Permalink
chore: remove typescript references
Browse files Browse the repository at this point in the history
  • Loading branch information
azimgd committed Aug 15, 2022
1 parent beaea34 commit 46d70a6
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 176 deletions.
12 changes: 0 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,6 @@ jobs:
command: |
yarn lint
typescript:
executor: default
steps:
- attach_project
- run:
name: Typecheck files
command: |
yarn typescript
unit-tests:
executor: default
steps:
Expand Down Expand Up @@ -87,9 +78,6 @@ workflows:
- lint:
requires:
- install-dependencies
- typescript:
requires:
- install-dependencies
- unit-tests:
requires:
- install-dependencies
Expand Down
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ npm run example ios
```


Make sure your code passes TypeScript and ESLint. Run the following to verify:
Make sure your code passes ESLint. Run the following to verify:

```sh
npm run typescript
npm run lint
```

Expand Down
2 changes: 1 addition & 1 deletion example/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
[
'module-resolver',
{
extensions: ['.tsx', '.ts', '.js', '.json'],
extensions: ['.js', '.jsx', '.json'],
alias: {
[pak.name]: path.join(__dirname, '..', pak.source),
},
Expand Down
6 changes: 1 addition & 5 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ pre-commit:
commands:
lint:
files: git diff --name-only @{push}
glob: "*.{js,ts,jsx,tsx}"
glob: "*.{js,jsx}"
run: npx eslint {files}
types:
files: git diff --name-only @{push}
glob: "*.{js,ts, jsx, tsx}"
run: npx tsc --noEmit
commit-msg:
parallel: true
commands:
Expand Down
105 changes: 1 addition & 104 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 3 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"description": "test",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/index.d.ts",
"react-native": "src/index",
"source": "src/index",
"files": [
Expand All @@ -14,7 +13,6 @@
"ios",
"cpp",
"react-native-key-command.podspec",
"!lib/typescript/example",
"!android/build",
"!ios/build",
"!**/__tests__",
Expand All @@ -23,8 +21,7 @@
],
"scripts": {
"test": "jest",
"typescript": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"lint": "eslint \"**/*.{js}\"",
"prepare": "bob build",
"release": "release-it",
"example": "npm run --prefix example"
Expand All @@ -50,9 +47,6 @@
"@commitlint/config-conventional": "^17.0.2",
"@lwc/eslint-plugin-lwc": "^1.4.0",
"@release-it/conventional-changelog": "^5.0.0",
"@types/jest": "^28.1.2",
"@types/react": "~17.0.21",
"@types/react-native": "0.68.0",
"commitlint": "^17.0.2",
"eslint": "^8.4.1",
"eslint-config-expensify": "^2.0.29",
Expand All @@ -63,11 +57,7 @@
"react": "17.0.2",
"react-native": "0.68.2",
"react-native-builder-bob": "^0.18.3",
"release-it": "^15.0.0",
"typescript": "^4.5.2"
},
"resolutions": {
"@types/react": "17.0.21"
"release-it": "^15.0.0"
},
"peerDependencies": {
"react": "*",
Expand Down Expand Up @@ -125,13 +115,7 @@
"output": "lib",
"targets": [
"commonjs",
"module",
[
"typescript",
{
"project": "tsconfig.build.json"
}
]
"module"
]
}
}
File renamed without changes.
5 changes: 0 additions & 5 deletions tsconfig.build.json

This file was deleted.

28 changes: 0 additions & 28 deletions tsconfig.json

This file was deleted.

0 comments on commit 46d70a6

Please sign in to comment.