Skip to content

Commit

Permalink
2026: add missing types and improve typescript setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahsporck committed Oct 12, 2023
1 parent 5fdf268 commit 2f13996
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ jobs:
command: yarn workspace web stylelint
name: Stylelint
- run:
command: yarn workspaces foreach run tsc --build
command: yarn workspaces foreach --verbose run tsc --build
name: TS check
- run:
command: yarn tsc --build
Expand Down
2 changes: 1 addition & 1 deletion .circleci/src/jobs/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ steps:
command: yarn workspace web stylelint
- run:
name: TS check
command: yarn workspaces foreach run tsc --build
command: yarn workspaces foreach --verbose run tsc --build
- run:
name: TS check native
command: yarn tsc --build
Expand Down
6 changes: 5 additions & 1 deletion .pnp.cjs

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

7 changes: 4 additions & 3 deletions api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"peerDependencies": {
"@types/luxon": "3",
"luxon": ">=3.4",
"react": "^18.2"
"react": "^18.2",
"rrule": "2"
},
"dependencies": {
"@turf/distance": "^6.5.0",
Expand All @@ -17,7 +18,6 @@
"lodash": "^4.17.21",
"normalize-path": "^3.0.0",
"normalize-strings": "^1.1.1",
"rrule": "2.7.2",
"seedrandom": "^3.0.5",
"uuid": "^9.0.0"
},
Expand All @@ -36,6 +36,7 @@
"jest-mock": "^29.7.0",
"luxon": "^3.4.2",
"md5": "^2.3.0",
"react": "^18.2.0"
"react": "^18.2.0",
"rrule": "^2.7.2"
}
}
2 changes: 1 addition & 1 deletion e2e-tests/native/capabilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Capabilities } from '@wdio/types'
import { getGitBranch, getGitHeadReference } from '../shared/git'

const browserstackCaps = (
config: Capabilities.AppiumW3CCapabilities | Capabilities.AppiumXCUITestCapabilities,
config: Capabilities.AppiumCapabilities | Capabilities.AppiumXCUITestCapabilities,
platformName: 'ios' | 'android',
): Capabilities.Capabilities => {
// is set by circleci https://github.com/circleci/circleci-docs/blob/master/jekyll/_cci1/environment-variables.md
Expand Down
1 change: 1 addition & 0 deletions native/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"module": "es2020",
"outDir": "dist",
"paths": {
"react-native": ["./node_modules/@types/react-native"],
"normalize-strings": ["../api-client/src/@types/normalize-strings"],
"@dr.pogodin/react-native-static-server": ["src/@types/react-native-static-server"],
"@react-native-async-storage/async-storage/jest/async-storage-mock": ["src/@types/untyped"]
Expand Down
2 changes: 1 addition & 1 deletion native/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3947,13 +3947,13 @@ __metadata:
lodash: ^4.17.21
normalize-path: ^3.0.0
normalize-strings: ^1.1.1
rrule: 2.7.2
seedrandom: ^3.0.5
uuid: ^9.0.0
peerDependencies:
"@types/luxon": 3
luxon: ">=3.4"
react: ^18.2
rrule: 2
languageName: node
linkType: soft

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"circleci:update-config": "cd $PROJECT_CWD && { cat .circleci/autogenerated_header.yml; circleci config pack .circleci/src; } > .circleci/config.yml && circleci config validate",
"prettier:check": "cd $PROJECT_CWD && prettier --ignore-path .prettierignore --check $PWD",
"prettier:write": "cd $PROJECT_CWD && prettier --ignore-path .prettierignore --write $PWD",
"ts:check": "cd $INIT_CWD && yarn run -T tsc --build",
"ts:check": "tsc --build",
":native": "cd $PROJECT_CWD/native && yarn",
"postinstall": "husky install"
},
Expand Down
11 changes: 10 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,14 @@
"target": "ESNext",
"useDefineForClassFields": false
},
"include": ["jest.config.ts", ".prettierrc.js", ".eslintrc.js"]
"include": ["jest.config.ts", ".prettierrc.js", ".eslintrc.js"],
"references": [
{ "path": "api-client" },
{ "path": "build-configs"},
{ "path": "e2e-tests"},
{ "path": "native"},
{ "path": "tools"},
{ "path": "translations"},
{ "path": "web"}
]
}
1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"react-map-gl": "^7.1.5",
"react-router-dom": "^6.15.0",
"react-spring-bottom-sheet": "^3.4.1",
"rrule": "^2.7.2",
"schema-dts": "^1.1.2",
"styled-components": "^5.3.11",
"translations": "workspace:*",
Expand Down
6 changes: 4 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3732,13 +3732,14 @@ __metadata:
normalize-path: ^3.0.0
normalize-strings: ^1.1.1
react: ^18.2.0
rrule: 2.7.2
rrule: ^2.7.2
seedrandom: ^3.0.5
uuid: ^9.0.0
peerDependencies:
"@types/luxon": 3
luxon: ">=3.4"
react: ^18.2
rrule: 2
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -13528,7 +13529,7 @@ __metadata:
languageName: node
linkType: hard

"rrule@npm:2.7.2":
"rrule@npm:^2.7.2":
version: 2.7.2
resolution: "rrule@npm:2.7.2"
dependencies:
Expand Down Expand Up @@ -15812,6 +15813,7 @@ __metadata:
react-refresh-typescript: ^2.0.9
react-router-dom: ^6.15.0
react-spring-bottom-sheet: ^3.4.1
rrule: ^2.7.2
schema-dts: ^1.1.2
style-loader: ^3.3.3
styled-components: ^5.3.11
Expand Down

0 comments on commit 2f13996

Please sign in to comment.