wui 7 tháng trước cách đây
mục cha
commit
41d9faafd2
2 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 1 0
      package.json
  2. 4 2
      tsconfig.json

+ 1 - 0
package.json

@@ -1,6 +1,7 @@
 {
   "name": "robin-api",
   "version": "1.0.0",
+  "type": "module",
   "main": "dist/app.js",
   "license": "MIT",
   "scripts": {

+ 4 - 2
tsconfig.json

@@ -1,10 +1,12 @@
 {
   "ts-node": {
-    "files": true
+    "files": true,
+    "esm": true
   },
   "compilerOptions": {
     "target": "ES2020",
-    "module": "commonjs",
+    "module": "ESNext",
+    "moduleResolution": "node",
     "lib": ["ES2020"],
     "strict": true,
     "strictPropertyInitialization": false,