diff --git a/src/index.ts b/src/index.ts index b63a781..a15eb98 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,5 @@ import { fetchUserProfile } from "./fetch"; const midudevId = '8242141302'; -(async () => { - const response = await fetchUserProfile({ userId: midudevId }); - console.log(response); -})(); +const response = await fetchUserProfile({ userId: midudevId }); +console.log(response); \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 4c683ca..a0e68e3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "es2017", - "module": "commonjs", + "module": "esnext", "esModuleInterop": true, "strict": true, "jsx": "react-jsx",