From 47c1648cd3c1be7ce8d3a6b77a43a1154dbd472f Mon Sep 17 00:00:00 2001 From: Sv443 Date: Thu, 28 Nov 2024 22:32:16 +0100 Subject: [PATCH] fix: idk whats going on --- package.json | 5 +++-- pnpm-lock.yaml | 34 ++++++++++++---------------------- tsconfig.json | 14 +++++++------- 3 files changed, 22 insertions(+), 31 deletions(-) diff --git a/package.json b/package.json index d468760..9776357 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,12 @@ "type": "module", "scripts": { "dev": "nodemon -e \"ts,d.ts,json\" -x \"pnpm start\"", - "start": "tsc && node --no-warnings=ExperimentalWarning --enable-source-maps out/src/index.js", + "start": "tsx src/index.ts", "dev-www": "cd www && pnpm run dev", "build-www": "cd www && pnpm run build", "dev-all": "concurrently \"pnpm dev\" \"pnpm dev-www\"", "lint": "eslint . && tsc --noEmit", - "test": "start-server-and-test start http://localhost:8074 jest" + "test": "start-server-and-test start http://127.0.0.1:8074 jest" }, "repository": { "type": "git", @@ -74,6 +74,7 @@ "pnpm": "^9.14.2", "start-server-and-test": "^2.0.8", "ts-jest": "^29.2.5", + "ts-node": "^10.9.2", "tslib": "^2.8.1" }, "nodemonConfig": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4821923..14dedf1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -111,6 +111,9 @@ importers: ts-jest: specifier: ^29.2.5 version: 29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@20.17.9)(ts-node@10.9.2(@types/node@20.17.9)(typescript@5.7.2)))(typescript@5.7.2) + ts-node: + specifier: ^10.9.2 + version: 10.9.2(@types/node@20.17.9)(typescript@5.7.2) tslib: specifier: ^2.8.1 version: 2.8.1 @@ -3177,7 +3180,6 @@ snapshots: '@cspotcode/source-map-support@0.8.1': dependencies: '@jridgewell/trace-mapping': 0.3.9 - optional: true '@esbuild/aix-ppc64@0.19.12': optional: true @@ -3554,7 +3556,6 @@ snapshots: dependencies: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - optional: true '@mdit-vue/plugin-component@2.1.3': dependencies: @@ -3635,17 +3636,13 @@ snapshots: dependencies: '@sinonjs/commons': 3.0.1 - '@tsconfig/node10@1.0.11': - optional: true + '@tsconfig/node10@1.0.11': {} - '@tsconfig/node12@1.0.11': - optional: true + '@tsconfig/node12@1.0.11': {} - '@tsconfig/node14@1.0.3': - optional: true + '@tsconfig/node14@1.0.3': {} - '@tsconfig/node16@1.0.4': - optional: true + '@tsconfig/node16@1.0.4': {} '@types/babel__core@7.20.5': dependencies: @@ -4085,7 +4082,6 @@ snapshots: acorn-walk@8.3.4: dependencies: acorn: 8.14.0 - optional: true acorn@8.14.0: {} @@ -4115,8 +4111,7 @@ snapshots: normalize-path: 3.0.0 picomatch: 2.3.1 - arg@4.1.3: - optional: true + arg@4.1.3: {} arg@5.0.2: {} @@ -4410,8 +4405,7 @@ snapshots: - supports-color - ts-node - create-require@1.1.1: - optional: true + create-require@1.1.1: {} cross-spawn@7.0.6: dependencies: @@ -4469,8 +4463,7 @@ snapshots: diff-sequences@29.6.3: {} - diff@4.0.2: - optional: true + diff@4.0.2: {} dir-glob@3.0.1: dependencies: @@ -6105,7 +6098,6 @@ snapshots: typescript: 5.7.2 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - optional: true tslib@2.8.1: {} @@ -6162,8 +6154,7 @@ snapshots: utils-merge@1.0.1: {} - v8-compile-cache-lib@3.0.1: - optional: true + v8-compile-cache-lib@3.0.1: {} v8-to-istanbul@9.3.0: dependencies: @@ -6257,7 +6248,6 @@ snapshots: y18n: 5.0.8 yargs-parser: 21.1.1 - yn@3.1.1: - optional: true + yn@3.1.1: {} yocto-queue@0.1.0: {} diff --git a/tsconfig.json b/tsconfig.json index 178d8be..3b100ce 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,11 +25,12 @@ "strict": true, "useDefineForClassFields": true, "noImplicitThis": false, + "allowImportingTsExtensions": false, "paths": { "@src/*": ["src/*"], "@routes/*": ["src/routes/*"], "@www/*": ["www/*"], - "@root/*": ["."], + "@root/*": ["*"], } }, "ts-node": { @@ -37,13 +38,12 @@ "preferTsExts": true, }, "include": [ - "src/**/*.ts", - "src/**/*.d.ts", - "www/**/*.ts", - "www/**/*.d.ts", + "src/**/*", + "www/**/*", ], "exclude": [ - "**/dist/**", - "**/dev/**", + "**/node_modules/**/*", + "**/dist/**/*", + "**/dev/**/*", ], }