Futa Arai 1 год назад
Родитель
Сommit
b2cdcb769f
2 измененных файлов с 3 добавлено и 0 удалено
  1. 2 0
      apps/slackbot-proxy/package.json
  2. 1 0
      apps/slackbot-proxy/tsconfig.json

+ 2 - 0
apps/slackbot-proxy/package.json

@@ -29,6 +29,7 @@
   },
   "// comments for dependencies": {
     "@tsed/*": "v6.133.1 causes 'TypeError: Cannot read properties of undefined (reading 'prototype')' with `@Middleware()`",
+    "@tsed/common,di,schema": "force package to local node_modules in tsconfig.json since pnpm reads wrong hoisted tsed version (https://github.com/pnpm/pnpm/issues/7158)",
     "read-pkg-up": "v8 doesn't support CommonJS anymore. https://github.com/sindresorhus/read-pkg-up/issues/17",
     "typeorm": "Upgrading to v0.3.x requires significant changes. https://github.com/tsedio/tsed/blob/production/docs/tutorials/typeorm.md"
   },
@@ -67,6 +68,7 @@
   },
   "// comments for devDependencies": {
     "@tsed/*": "v6.133.1 causes 'TypeError: Cannot read properties of undefined (reading 'prototype')' with `@Middleware()`",
+    "@tsed/core,exceptions": "force package to local node_modules in tsconfig.json since pnpm reads wrong hoisted tsed version (https://github.com/pnpm/pnpm/issues/7158)",
     "bootstrap": "v5.3.3 has a bug. refs: https://github.com/twbs/bootstrap/issues/39798"
   },
   "devDependencies": {

+ 1 - 0
apps/slackbot-proxy/tsconfig.json

@@ -8,6 +8,7 @@
     "baseUrl": ".",
     "paths": {
       "~/*": ["./src/*"],
+      // force package to local node_modules since pnpm reads wrong hoisted tsed version used in pdf-converter (https://github.com/pnpm/pnpm/issues/7158)
       "@tsed/core": ["./node_modules/@tsed/core"],
       "@tsed/schema": ["./node_modules/@tsed/schema"],
       "@tsed/exceptions": ["./node_modules/@tsed/exceptions"],