Skip to content

Commit

Permalink
chore: bump typescript to v5.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Sep 28, 2024
1 parent 52bf8dd commit d709741
Show file tree
Hide file tree
Showing 220 changed files with 4,058 additions and 3,915 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started/snippets/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@
"supertest": "6.0.0",
"ts-node": "9.0.0",
"tslint": "6.1.3",
"typescript": "4.9.5"
"typescript": "5.4.5"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"supertest": "7.0.0",
"ts-loader": "9.5.1",
"tslib": "2.7.0",
"typescript": "4.9.5",
"typescript": "5.4.5",
"unplugin-swc": "1.5.1",
"vite": "5.4.1",
"vitest": "2.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@tsed/vitest": "workspace:*",
"@vitest/coverage-v8": "^2.0.5",
"eslint": "^8.57.0",
"typescript": "4.9.5",
"typescript": "5.4.5",
"vite": "^5.4.1",
"vitest": "2.0.4",
"webpack": "^5.75.0"
Expand Down
4 changes: 1 addition & 3 deletions packages/core/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
"extends": "@tsed/typescript/tsconfig.node.json",
"compilerOptions": {
"baseUrl": ".",
"module": "ESNext",
"moduleResolution": "nodenext",
"rootDir": "src",
"outDir": "./lib/esm",
"declarationDir": "./lib/types",
"declaration": true,
"composite": true,
"noEmit": false
},
"include": ["src", "src/**/*.json"],
"include": ["src/**/*.ts", "src/**/*.json"],
"exclude": [
"node_modules",
"test",
Expand Down
104 changes: 79 additions & 25 deletions packages/core/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,89 @@
"compilerOptions": {
"baseUrl": ".",
"rootDir": "..",
"module": "commonjs",
"outDir": "./lib/cjs",
"declaration": false,
"composite": false,
"noEmit": true,
"paths": {
"@tsed/openspec": ["../specs/openspec/src"],
"@tsed/schema": ["../specs/schema/src"],
"@tsed/di": ["../di/src"],
"@tsed/exceptions": ["../specs/exceptions/src"],
"@tsed/json-mapper": ["../specs/json-mapper/src"],
"@tsed/platform-exceptions": ["../platform/platform-exceptions/src"],
"@tsed/platform-middlewares": ["../platform/platform-middlewares/src"],
"@tsed/platform-params": ["../platform/platform-params/src"],
"@tsed/platform-log-middleware": ["../platform/platform-log-middleware/src"],
"@tsed/platform-response-filter": ["../platform/platform-response-filter/src"],
"@tsed/platform-router": ["../platform/platform-router/src"],
"@tsed/platform-views": ["../platform/platform-views/src"],
"@tsed/components-scan": ["../third-parties/components-scan/src"],
"@tsed/common": ["../platform/common/src"],
"@tsed/ajv": ["../specs/ajv/src"],
"@tsed/platform-cache": ["../platform/platform-cache/src"],
"@tsed/swagger": ["../specs/swagger/src"],
"@tsed/platform-test-sdk": ["../platform/platform-test-sdk/src"],
"@tsed/platform-express": ["../platform/platform-express/src"],
"@tsed/platform-koa": ["../platform/platform-koa/src"]
"@tsed/openspec": [
"../specs/openspec/src/index.ts"
],
"@tsed/schema": [
"../specs/schema/src/index.ts"
],
"@tsed/di": [
"../di/src/index.ts"
],
"@tsed/exceptions": [
"../specs/exceptions/src/index.ts"
],
"@tsed/json-mapper": [
"../specs/json-mapper/src/index.ts"
],
"@tsed/platform-exceptions": [
"../platform/platform-exceptions/src/index.ts"
],
"@tsed/platform-middlewares": [
"../platform/platform-middlewares/src/index.ts"
],
"@tsed/platform-params": [
"../platform/platform-params/src/index.ts"
],
"@tsed/platform-log-middleware": [
"../platform/platform-log-middleware/src/index.ts"
],
"@tsed/platform-response-filter": [
"../platform/platform-response-filter/src/index.ts"
],
"@tsed/platform-router": [
"../platform/platform-router/src/index.ts"
],
"@tsed/platform-views": [
"../platform/platform-views/src/index.ts"
],
"@tsed/normalize-path": [
"../utils/normalize-path/src/index.ts"
],
"@tsed/components-scan": [
"../third-parties/components-scan/src/index.ts"
],
"@tsed/common": [
"../platform/common/src/index.ts"
],
"@tsed/ajv": [
"../specs/ajv/src/index.ts"
],
"@tsed/platform-cache": [
"../platform/platform-cache/src/index.ts"
],
"@tsed/swagger": [
"../specs/swagger/src/index.ts"
],
"@tsed/platform-test-sdk": [
"../platform/platform-test-sdk/src/index.ts"
],
"@tsed/platform-express": [
"../platform/platform-express/src/index.ts"
],
"@tsed/platform-koa": [
"../platform/platform-koa/src/index.ts"
]
},
"types": ["vite/client", "vitest/globals"]
"types": [
"vite/client",
"vitest/globals"
]
},
"include": ["src/**/*.spec.ts", "test/**/*.spec.ts", "vitest.config.mts"],
"exclude": ["node_modules", "test", "lib", "benchmark", "coverage"]
"include": [
"src/**/*.spec.ts",
"test/**/*.spec.ts",
"vitest.config.mts"
],
"exclude": [
"node_modules",
"test",
"lib",
"benchmark",
"coverage"
]
}
2 changes: 1 addition & 1 deletion packages/di/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@tsed/typescript": "workspace:*",
"cross-env": "7.0.3",
"eslint": "^8.57.0",
"typescript": "4.9.5",
"typescript": "5.4.5",
"vitest": "2.0.4",
"webpack": "^5.75.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/di/src/common/decorators/lazyInject.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("LazyInject", () => {
it("should lazy load module (import)", async () => {
@Injectable()
class MyInjectable {
@LazyInject("MyLazyModule", () => import("./__mock__/lazy.import.module"))
@LazyInject("MyLazyModule", () => import("./__mock__/lazy.import.module.js"))
lazy: Promise<MyLazyModule>;
}

Expand All @@ -26,7 +26,7 @@ describe("LazyInject", () => {
it("should throw an error when token isn't a valid provider", async () => {
@Injectable()
class MyInjectable {
@LazyInject("TKO", () => import("./__mock__/lazy.nodefault.module"))
@LazyInject("TKO", () => import("./__mock__/lazy.nodefault.module.js"))
lazy?: Promise<MyLazyModule>;
}

Expand Down
3 changes: 0 additions & 3 deletions packages/di/src/common/registries/GlobalProviders.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import {s} from "vite/dist/node/types.d-aGj9QkWt.js";
import {a} from "vitest/dist/suite-CRLAhsm0.js";

import {LocalsContainer} from "../domain/LocalsContainer.js";
import {Provider} from "../domain/Provider.js";
import {ProviderType} from "../domain/ProviderType.js";
Expand Down
4 changes: 1 addition & 3 deletions packages/di/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
"extends": "@tsed/typescript/tsconfig.node.json",
"compilerOptions": {
"baseUrl": ".",
"module": "ESNext",
"moduleResolution": "nodenext",
"rootDir": "src",
"outDir": "./lib/esm",
"declarationDir": "./lib/types",
"declaration": true,
"composite": true,
"noEmit": false
},
"include": ["src", "src/**/*.json"],
"include": ["src/**/*.ts", "src/**/*.json"],
"exclude": [
"node_modules",
"test",
Expand Down
100 changes: 76 additions & 24 deletions packages/di/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,86 @@
"compilerOptions": {
"baseUrl": ".",
"rootDir": "..",
"module": "commonjs",
"outDir": "./lib/cjs",
"declaration": false,
"composite": false,
"noEmit": true,
"paths": {
"@tsed/openspec": ["../specs/openspec/src"],
"@tsed/schema": ["../specs/schema/src"],
"@tsed/exceptions": ["../specs/exceptions/src"],
"@tsed/json-mapper": ["../specs/json-mapper/src"],
"@tsed/platform-exceptions": ["../platform/platform-exceptions/src"],
"@tsed/platform-middlewares": ["../platform/platform-middlewares/src"],
"@tsed/platform-params": ["../platform/platform-params/src"],
"@tsed/platform-log-middleware": ["../platform/platform-log-middleware/src"],
"@tsed/platform-response-filter": ["../platform/platform-response-filter/src"],
"@tsed/platform-router": ["../platform/platform-router/src"],
"@tsed/platform-views": ["../platform/platform-views/src"],
"@tsed/components-scan": ["../third-parties/components-scan/src"],
"@tsed/common": ["../platform/common/src"],
"@tsed/ajv": ["../specs/ajv/src"],
"@tsed/platform-cache": ["../platform/platform-cache/src"],
"@tsed/swagger": ["../specs/swagger/src"],
"@tsed/platform-test-sdk": ["../platform/platform-test-sdk/src"],
"@tsed/platform-express": ["../platform/platform-express/src"],
"@tsed/platform-koa": ["../platform/platform-koa/src"]
"@tsed/openspec": [
"../specs/openspec/src/index.ts"
],
"@tsed/schema": [
"../specs/schema/src/index.ts"
],
"@tsed/exceptions": [
"../specs/exceptions/src/index.ts"
],
"@tsed/json-mapper": [
"../specs/json-mapper/src/index.ts"
],
"@tsed/platform-exceptions": [
"../platform/platform-exceptions/src/index.ts"
],
"@tsed/platform-middlewares": [
"../platform/platform-middlewares/src/index.ts"
],
"@tsed/platform-params": [
"../platform/platform-params/src/index.ts"
],
"@tsed/platform-log-middleware": [
"../platform/platform-log-middleware/src/index.ts"
],
"@tsed/platform-response-filter": [
"../platform/platform-response-filter/src/index.ts"
],
"@tsed/platform-router": [
"../platform/platform-router/src/index.ts"
],
"@tsed/platform-views": [
"../platform/platform-views/src/index.ts"
],
"@tsed/normalize-path": [
"../utils/normalize-path/src/index.ts"
],
"@tsed/components-scan": [
"../third-parties/components-scan/src/index.ts"
],
"@tsed/common": [
"../platform/common/src/index.ts"
],
"@tsed/ajv": [
"../specs/ajv/src/index.ts"
],
"@tsed/platform-cache": [
"../platform/platform-cache/src/index.ts"
],
"@tsed/swagger": [
"../specs/swagger/src/index.ts"
],
"@tsed/platform-test-sdk": [
"../platform/platform-test-sdk/src/index.ts"
],
"@tsed/platform-express": [
"../platform/platform-express/src/index.ts"
],
"@tsed/platform-koa": [
"../platform/platform-koa/src/index.ts"
]
},
"types": ["vite/client", "vitest/globals"]
"types": [
"vite/client",
"vitest/globals"
]
},
"include": ["src/**/*.spec.ts", "test/**/*.spec.ts", "vitest.config.mts"],
"exclude": ["node_modules", "test", "lib", "benchmark", "coverage"]
"include": [
"src/**/*.spec.ts",
"test/**/*.spec.ts",
"vitest.config.mts"
],
"exclude": [
"node_modules",
"test",
"lib",
"benchmark",
"coverage"
]
}
2 changes: 1 addition & 1 deletion packages/engines/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"ts-node": "10.9.2",
"twig": "^1.15.2",
"twing": "^5.0.2",
"typescript": "4.9.5",
"typescript": "5.4.5",
"underscore": "^1.11.0",
"vash": "^0.13.0",
"velocityjs": "^2.0.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/engines/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
"extends": "@tsed/typescript/tsconfig.node.json",
"compilerOptions": {
"baseUrl": ".",
"module": "ESNext",
"moduleResolution": "nodenext",
"rootDir": "src",
"outDir": "./lib/esm",
"declarationDir": "./lib/types",
"declaration": true,
"composite": true,
"noEmit": false
},
"include": ["src", "src/**/*.json"],
"include": ["src/**/*.ts", "src/**/*.json"],
"exclude": [
"node_modules",
"test",
Expand Down
Loading

0 comments on commit d709741

Please sign in to comment.