Skip to content

Commit

Permalink
[chore] Upgrade to typescript 4
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent 732ad1e commit 5fa0b56
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 30 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
"type-check": "lerna run --parallel type-check"
},
"devDependencies": {
"@babel/cli": "^7.7.4",
"@babel/core": "^7.7.4",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@babel/preset-react": "^7.7.4",
"@babel/preset-typescript": "^7.7.4",
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/preset-env": "^7.11.5",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@babel/register": "^7.7.4",
"@typescript-eslint/eslint-plugin": "^2.10.0",
"@typescript-eslint/parser": "^2.10.0",
Expand Down Expand Up @@ -99,7 +99,7 @@
"stylelint-config-prettier": "^8.0.1",
"stylelint-prettier": "^1.1.2",
"through2": "^3.0.1",
"typescript": "^3.7.3",
"typescript": "^4.0.2",
"yarn": "^1.3.2"
},
"husky": {
Expand Down
1 change: 0 additions & 1 deletion packages/@sanity/base/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"strictNullChecks": false,
"jsx": "react",

// Paths
"baseUrl": "./src",
"paths": {
"part:@sanity/base/datastore/history": ["./datastores/history"],
Expand Down
3 changes: 2 additions & 1 deletion packages/@sanity/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"sanity-plugin"
],
"dependencies": {
"@juggle/resize-observer": "3.1.3",
"@juggle/resize-observer": "^3.2.0",
"@popperjs/core": "^2.4.4",
"@reach/auto-id": "^0.10.5",
"@sanity/base": "1.150.8",
"@sanity/util": "1.150.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/@sanity/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"core"
],
"dependencies": {
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@babel/preset-react": "^7.7.4",
"@babel/preset-typescript": "^7.7.4",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/preset-env": "^7.11.5",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@babel/register": "^7.7.4",
"@sanity/check": "1.150.1",
"@sanity/export": "1.150.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"jest": "^24.9.0",
"rimraf": "^2.7.1",
"ts-jest": "^24.2.0",
"typescript": "^3.7.3"
"typescript": "^4.0.2"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"devDependencies": {
"react": "16.9.0",
"rimraf": "^2.7.1",
"typescript": "^3.7.3"
"typescript": "^4.0.2"
},
"peerDependencies": {
"react": "^16.2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/initial-value-templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"rimraf": "^2.7.1",
"rxjs": "^6.5.3",
"ts-jest": "^24.2.0",
"typescript": "^3.7.3"
"typescript": "^4.0.2"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/react-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"rimraf": "^2.7.1",
"rxjs": "^6.5.3",
"ts-jest": "^24.2.0",
"typescript": "^3.7.3"
"typescript": "^4.0.2"
},
"repository": {
"type": "git",
Expand Down
3 changes: 1 addition & 2 deletions packages/@sanity/react-hooks/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"include": ["src/**/*.ts", "src/**/*.test.ts"],
"exclude": ["src/**/*.test.ts"],
"compilerOptions": {
"outDir": "./lib",
"strict": true
"outDir": "./lib"
}
}
10 changes: 5 additions & 5 deletions packages/@sanity/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
},
"homepage": "https://www.sanity.io/",
"dependencies": {
"@babel/core": "^7.7.4",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@babel/preset-react": "^7.7.4",
"@babel/preset-typescript": "^7.7.4",
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/preset-env": "^7.11.5",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@babel/register": "^7.7.4",
"@hot-loader/react-dom": "^16.9.0-4.12.11",
"@sanity/css-loader": "^0.28.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/structure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"rimraf": "^2.7.1",
"rxjs": "^6.5.3",
"ts-jest": "^24.2.0",
"typescript": "^3.7.3"
"typescript": "^4.0.2"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/transaction-collator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"rxjs": "^6.5.3",
"ts-jest": "^24.2.0",
"tslint": "^5.18.0",
"typescript": "^3.7.3"
"typescript": "^4.0.2"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/design-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"react-dom": "^16.9.0"
},
"devDependencies": {
"typescript": "^3.7.3",
"typescript-plugin-css-modules": "^1.2.1"
"typescript": "^4.0.2",
"typescript-plugin-css-modules": "^2.4.0"
}
}
1 change: 0 additions & 1 deletion packages/design-studio/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../tsconfig",
"compilerOptions": {
"outDir": "./lib",
"strict": true,
"jsx": "react",
"plugins": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/mendoza/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "./lib",
"devDependencies": {
"ts-node": "^8.6.2",
"typescript": "^3.7.3"
"typescript": "^4.0.2"
},
"prettier": {
"semi": false,
Expand Down

0 comments on commit 5fa0b56

Please sign in to comment.