소스 검색

chore: Revert to .ts

olivermrbl 5 달 전
부모
커밋
529e11ed76
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      medusa-config.ts
  2. 2 2
      tsconfig.json

+ 1 - 1
medusa-config.js → medusa-config.ts

@@ -1,4 +1,4 @@
-import { loadEnv, defineConfig } from '@medusajs/framework/utils'
+import { defineConfig, loadEnv } from '@medusajs/framework/utils';
 
 loadEnv(process.env.NODE_ENV || "development", process.cwd());
 

+ 2 - 2
tsconfig.json

@@ -1,7 +1,6 @@
 {
   "compilerOptions": {
     "target": "ES2021",
-    "allowJs": true,
     "esModuleInterop": true,
     "module": "Node16",
     "moduleResolution": "Node16",
@@ -18,6 +17,7 @@
     "jsx": "react-jsx",
     "forceConsistentCasingInFileNames": true,
     "resolveJsonModule": true,
+    "checkJs": false,
     "strictNullChecks": true
   },
   "ts-node": {
@@ -33,4 +33,4 @@
     ".medusa/admin",
     ".cache"
   ]
-}
+}