Skip to content

Commit d133907

Browse files
authored
Fix major issue (#14)
* Fix issue with ts-node-dev and paths * switch express to fastify in the readme
1 parent bdfdf3f commit d133907

File tree

5 files changed

+23
-2
lines changed

5 files changed

+23
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# prisma-express-react
1+
# prisma-fastify-react
22

33
Prisma, TypeScript, Next.js + Fastify monorepo example. Has a shared package for schemas and more.

packages/backend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"devDependencies": {
1212
"ts-node-dev": "^1.1.6",
13+
"tsconfig-paths": "^3.9.0",
1314
"typescript": "^4.2.4"
1415
},
1516
"scripts": {

packages/backend/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
"rootDir": "src",
55
"outDir": "dist"
66
},
7+
"ts-node": {
8+
"require": ["tsconfig-paths/register"]
9+
},
710
"exclude": ["node_modules", "dist"]
811
}

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"compilerOptions": {
33
"target": "es5",
44
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
5+
6+
// Disabled due to: https://github.com/TypeStrong/ts-node/issues/693
7+
"allowJs": false,
68
"skipLibCheck": true,
79
"esModuleInterop": true,
810
"allowSyntheticDefaultImports": true,

yarn.lock

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,11 @@
10431043
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz"
10441044
integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw==
10451045

1046+
"@types/json5@^0.0.29":
1047+
version "0.0.29"
1048+
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
1049+
integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4=
1050+
10461051
"@types/minimatch@^3.0.3":
10471052
version "3.0.4"
10481053
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.4.tgz#f0ec25dbf2f0e4b18647313ac031134ca5b24b21"
@@ -6891,6 +6896,16 @@ ts-pnp@^1.1.6:
68916896
resolved "https://registry.yarnpkg.com/ts-pnp/-/ts-pnp-1.2.0.tgz#a500ad084b0798f1c3071af391e65912c86bca92"
68926897
integrity sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw==
68936898

6899+
tsconfig-paths@^3.9.0:
6900+
version "3.9.0"
6901+
resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz#098547a6c4448807e8fcb8eae081064ee9a3c90b"
6902+
integrity sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==
6903+
dependencies:
6904+
"@types/json5" "^0.0.29"
6905+
json5 "^1.0.1"
6906+
minimist "^1.2.0"
6907+
strip-bom "^3.0.0"
6908+
68946909
tsconfig@^7.0.0:
68956910
version "7.0.0"
68966911
resolved "https://registry.yarnpkg.com/tsconfig/-/tsconfig-7.0.0.tgz#84538875a4dc216e5c4a5432b3a4dec3d54e91b7"

0 commit comments

Comments
 (0)