mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
chore: bump typescript to 5.1.3 (#2735)
Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
@@ -23,6 +23,9 @@
|
|||||||
"forge": "./forge.config.js"
|
"forge": "./forge.config.js"
|
||||||
},
|
},
|
||||||
"main": "./dist/layers/main/index.js",
|
"main": "./dist/layers/main/index.js",
|
||||||
|
"exports": {
|
||||||
|
"./scripts/plugins/build-plugins.mjs": "./scripts/plugins/build-plugins.mjs"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@affine-test/kit": "workspace:*",
|
"@affine-test/kit": "workspace:*",
|
||||||
"@affine/native": "workspace:*",
|
"@affine/native": "workspace:*",
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
"nodemon": "^2.0.22",
|
"nodemon": "^2.0.22",
|
||||||
"supertest": "^6.3.3",
|
"supertest": "^6.3.3",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.1.3",
|
||||||
"vitest": "^0.31.4"
|
"vitest": "^0.31.4"
|
||||||
},
|
},
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
@@ -6,7 +7,13 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"outDir": "dist/scripts"
|
"outDir": "dist/scripts",
|
||||||
|
"rootDir": "."
|
||||||
},
|
},
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "../../tests/fixtures"
|
||||||
|
}
|
||||||
|
],
|
||||||
"include": ["scripts", "package.json"]
|
"include": ["scripts", "package.json"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
"raw-loader": "^4.0.2",
|
"raw-loader": "^4.0.2",
|
||||||
"redux": "^4.2.1",
|
"redux": "^4.2.1",
|
||||||
"swc-plugin-coverage-instrument": "^0.0.18",
|
"swc-plugin-coverage-instrument": "^0.0.18",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.1.3",
|
||||||
"webpack": "^5.85.0"
|
"webpack": "^5.85.0"
|
||||||
},
|
},
|
||||||
"stableVersion": "0.0.0"
|
"stableVersion": "0.0.0"
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
"react": "18.3.0-canary-16d053d59-20230506",
|
"react": "18.3.0-canary-16d053d59-20230506",
|
||||||
"react-dom": "18.3.0-canary-16d053d59-20230506",
|
"react-dom": "18.3.0-canary-16d053d59-20230506",
|
||||||
"serve": "^14.2.0",
|
"serve": "^14.2.0",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.1.3",
|
||||||
"vite": "^4.3.9",
|
"vite": "^4.3.9",
|
||||||
"vite-plugin-istanbul": "^4.1.0",
|
"vite-plugin-istanbul": "^4.1.0",
|
||||||
"vite-tsconfig-paths": "^4.2.0",
|
"vite-tsconfig-paths": "^4.2.0",
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
"@types/react-dnd": "^3.0.2",
|
"@types/react-dnd": "^3.0.2",
|
||||||
"@types/react-dom": "18.2.4",
|
"@types/react-dom": "18.2.4",
|
||||||
"@vanilla-extract/css": "^1.11.0",
|
"@vanilla-extract/css": "^1.11.0",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.1.3",
|
||||||
"vite": "^4.3.9",
|
"vite": "^4.3.9",
|
||||||
"yjs": "^13.6.1"
|
"yjs": "^13.6.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
"@types/prettier": "^2.7.3",
|
"@types/prettier": "^2.7.3",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typescript": "^5.0.4"
|
"typescript": "^5.1.3"
|
||||||
},
|
},
|
||||||
"version": "0.7.0-canary.11"
|
"version": "0.7.0-canary.11"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"rxjs": "^7.8.1",
|
"rxjs": "^7.8.1",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.1.3",
|
||||||
"uuid": "^9.0.0"
|
"uuid": "^9.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
|
|||||||
@@ -2,5 +2,6 @@ import { beforeAll } from 'vitest';
|
|||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
console.log('Build plugins');
|
console.log('Build plugins');
|
||||||
|
// @ts-expect-error
|
||||||
await import('../../apps/electron/scripts/plugins/build-plugins.mjs');
|
await import('../../apps/electron/scripts/plugins/build-plugins.mjs');
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
blockSuiteFeatureFlags,
|
blockSuiteFeatureFlags,
|
||||||
buildFlags,
|
buildFlags,
|
||||||
} from '../../apps/web/preset.config.mjs';
|
// @ts-expect-error
|
||||||
|
} from '@affine/web/preset.config.mjs';
|
||||||
|
|
||||||
export default function getConfig() {
|
export default function getConfig() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -69,10 +69,7 @@
|
|||||||
"@affine/graphql": ["./packages/graphql/src"],
|
"@affine/graphql": ["./packages/graphql/src"],
|
||||||
"@affine/copilot": ["./plugins/copilot/src"],
|
"@affine/copilot": ["./plugins/copilot/src"],
|
||||||
"@affine/copilot/*": ["./plugins/copilot/src/*"],
|
"@affine/copilot/*": ["./plugins/copilot/src/*"],
|
||||||
"@affine/electron/layers/*": ["./apps/electron/layers/*"],
|
"@affine/electron/scripts/*": ["./apps/electron/scripts/*"],
|
||||||
"@affine/electron/preload": [
|
|
||||||
"./apps/electron/layers/preload/preload.d.ts"
|
|
||||||
],
|
|
||||||
"@affine-test/kit/*": ["./tests/kit/*"],
|
"@affine-test/kit/*": ["./tests/kit/*"],
|
||||||
"@affine-test/fixtures/*": ["./tests/fixtures/*"],
|
"@affine-test/fixtures/*": ["./tests/fixtures/*"],
|
||||||
"@toeverything/infra": ["./packages/infra/src"],
|
"@toeverything/infra": ["./packages/infra/src"],
|
||||||
@@ -81,7 +78,10 @@
|
|||||||
"@toeverything/plugin-infra": ["./packages/plugin-infra/src"],
|
"@toeverything/plugin-infra": ["./packages/plugin-infra/src"],
|
||||||
"@toeverything/plugin-infra/*": ["./packages/plugin-infra/src/*"],
|
"@toeverything/plugin-infra/*": ["./packages/plugin-infra/src/*"],
|
||||||
"@affine/native": ["./packages/native/index.d.ts"],
|
"@affine/native": ["./packages/native/index.d.ts"],
|
||||||
"@affine/native/*": ["./packages/native/*"]
|
"@affine/native/*": ["./packages/native/*"],
|
||||||
|
|
||||||
|
// Development only
|
||||||
|
"@affine/electron/layers/*": ["./apps/electron/layers/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": [],
|
"include": [],
|
||||||
@@ -146,5 +146,5 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"files": [],
|
"files": [],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules", "target", "lib", "test-results"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
|
|||||||
36
yarn.lock
36
yarn.lock
@@ -103,7 +103,7 @@ __metadata:
|
|||||||
react-error-boundary: ^4.0.9
|
react-error-boundary: ^4.0.9
|
||||||
react-is: ^18.2.0
|
react-is: ^18.2.0
|
||||||
rxjs: ^7.8.1
|
rxjs: ^7.8.1
|
||||||
typescript: ^5.0.4
|
typescript: ^5.1.3
|
||||||
vite: ^4.3.9
|
vite: ^4.3.9
|
||||||
yjs: ^13.6.1
|
yjs: ^13.6.1
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -230,7 +230,7 @@ __metadata:
|
|||||||
prettier: ^2.8.8
|
prettier: ^2.8.8
|
||||||
react-i18next: ^12.3.1
|
react-i18next: ^12.3.1
|
||||||
ts-node: ^10.9.1
|
ts-node: ^10.9.1
|
||||||
typescript: ^5.0.4
|
typescript: ^5.1.3
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
@@ -265,7 +265,7 @@ __metadata:
|
|||||||
cross-env: ^7.0.3
|
cross-env: ^7.0.3
|
||||||
rxjs: ^7.8.1
|
rxjs: ^7.8.1
|
||||||
ts-node: ^10.9.1
|
ts-node: ^10.9.1
|
||||||
typescript: ^5.0.4
|
typescript: ^5.1.3
|
||||||
uuid: ^9.0.0
|
uuid: ^9.0.0
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
@@ -301,7 +301,7 @@ __metadata:
|
|||||||
rxjs: ^7.8.1
|
rxjs: ^7.8.1
|
||||||
supertest: ^6.3.3
|
supertest: ^6.3.3
|
||||||
ts-node: ^10.9.1
|
ts-node: ^10.9.1
|
||||||
typescript: ^5.0.4
|
typescript: ^5.1.3
|
||||||
vitest: ^0.31.4
|
vitest: ^0.31.4
|
||||||
bin:
|
bin:
|
||||||
run-test: ./scripts/run-test.ts
|
run-test: ./scripts/run-test.ts
|
||||||
@@ -424,7 +424,7 @@ __metadata:
|
|||||||
rxjs: ^7.8.1
|
rxjs: ^7.8.1
|
||||||
swc-plugin-coverage-instrument: ^0.0.18
|
swc-plugin-coverage-instrument: ^0.0.18
|
||||||
swr: ^2.1.5
|
swr: ^2.1.5
|
||||||
typescript: ^5.0.4
|
typescript: ^5.1.3
|
||||||
webpack: ^5.85.0
|
webpack: ^5.85.0
|
||||||
y-protocols: ^1.0.5
|
y-protocols: ^1.0.5
|
||||||
yjs: ^13.6.1
|
yjs: ^13.6.1
|
||||||
@@ -10670,7 +10670,7 @@ __metadata:
|
|||||||
react: 18.3.0-canary-16d053d59-20230506
|
react: 18.3.0-canary-16d053d59-20230506
|
||||||
react-dom: 18.3.0-canary-16d053d59-20230506
|
react-dom: 18.3.0-canary-16d053d59-20230506
|
||||||
serve: ^14.2.0
|
serve: ^14.2.0
|
||||||
typescript: ^5.0.4
|
typescript: ^5.1.3
|
||||||
vite: ^4.3.9
|
vite: ^4.3.9
|
||||||
vite-plugin-istanbul: ^4.1.0
|
vite-plugin-istanbul: ^4.1.0
|
||||||
vite-tsconfig-paths: ^4.2.0
|
vite-tsconfig-paths: ^4.2.0
|
||||||
@@ -26480,7 +26480,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"typescript@npm:^4.6.4 || ^5.0.0, typescript@npm:^5.0.4, typescript@npm:~5.0.4":
|
"typescript@npm:^4.6.4 || ^5.0.0, typescript@npm:~5.0.4":
|
||||||
version: 5.0.4
|
version: 5.0.4
|
||||||
resolution: "typescript@npm:5.0.4"
|
resolution: "typescript@npm:5.0.4"
|
||||||
bin:
|
bin:
|
||||||
@@ -26490,6 +26490,16 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"typescript@npm:^5.1.3":
|
||||||
|
version: 5.1.3
|
||||||
|
resolution: "typescript@npm:5.1.3"
|
||||||
|
bin:
|
||||||
|
tsc: bin/tsc
|
||||||
|
tsserver: bin/tsserver
|
||||||
|
checksum: d9d51862d98efa46534f2800a1071a613751b1585dc78884807d0c179bcd93d6e9d4012a508e276742f5f33c480adefc52ffcafaf9e0e00ab641a14cde9a31c7
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"typescript@patch:typescript@^3.9.10#~builtin<compat/typescript>, typescript@patch:typescript@^3.9.7#~builtin<compat/typescript>":
|
"typescript@patch:typescript@^3.9.10#~builtin<compat/typescript>, typescript@patch:typescript@^3.9.7#~builtin<compat/typescript>":
|
||||||
version: 3.9.10
|
version: 3.9.10
|
||||||
resolution: "typescript@patch:typescript@npm%3A3.9.10#~builtin<compat/typescript>::version=3.9.10&hash=3bd3d3"
|
resolution: "typescript@patch:typescript@npm%3A3.9.10#~builtin<compat/typescript>::version=3.9.10&hash=3bd3d3"
|
||||||
@@ -26510,7 +26520,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"typescript@patch:typescript@^4.6.4 || ^5.0.0#~builtin<compat/typescript>, typescript@patch:typescript@^5.0.4#~builtin<compat/typescript>, typescript@patch:typescript@~5.0.4#~builtin<compat/typescript>":
|
"typescript@patch:typescript@^4.6.4 || ^5.0.0#~builtin<compat/typescript>, typescript@patch:typescript@~5.0.4#~builtin<compat/typescript>":
|
||||||
version: 5.0.4
|
version: 5.0.4
|
||||||
resolution: "typescript@patch:typescript@npm%3A5.0.4#~builtin<compat/typescript>::version=5.0.4&hash=85af82"
|
resolution: "typescript@patch:typescript@npm%3A5.0.4#~builtin<compat/typescript>::version=5.0.4&hash=85af82"
|
||||||
bin:
|
bin:
|
||||||
@@ -26520,6 +26530,16 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"typescript@patch:typescript@^5.1.3#~builtin<compat/typescript>":
|
||||||
|
version: 5.1.3
|
||||||
|
resolution: "typescript@patch:typescript@npm%3A5.1.3#~builtin<compat/typescript>::version=5.1.3&hash=85af82"
|
||||||
|
bin:
|
||||||
|
tsc: bin/tsc
|
||||||
|
tsserver: bin/tsserver
|
||||||
|
checksum: 32a25b2e128a4616f999d4ee502aabb1525d5647bc8955e6edf05d7fbc53af8aa98252e2f6ba80bcedfc0260c982b885f3c09cfac8bb65d2924f3133ad1e1e62
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"typeson-registry@npm:^1.0.0-alpha.20":
|
"typeson-registry@npm:^1.0.0-alpha.20":
|
||||||
version: 1.0.0-alpha.39
|
version: 1.0.0-alpha.39
|
||||||
resolution: "typeson-registry@npm:1.0.0-alpha.39"
|
resolution: "typeson-registry@npm:1.0.0-alpha.39"
|
||||||
|
|||||||
Reference in New Issue
Block a user