fix: ts module resolution and revert style

This commit is contained in:
Jacob Nguyen
2023-06-11 16:23:06 -05:00
parent aec9af74ad
commit cb4d6357f7
4 changed files with 29 additions and 30 deletions

View File

@@ -33,5 +33,4 @@ async function init() {
});
}
init();
client.login();
init().then(() => client.login());

View File

@@ -1,16 +1,16 @@
{
"compilerOptions": {
"moduleResolution": "nodenext",
"resolveJsonModule": true,
"target": "ESNext",
"module": "ESNext",
"outDir": "dist",
"rootDir": "src",
"strict": true,
"esModuleInterop": true,
"noImplicitAny": true,
"strictNullChecks": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
"compilerOptions": {
"moduleResolution": "node",
"resolveJsonModule": true,
"target": "ESNext",
"module": "ESNext",
"outDir": "dist",
"rootDir": "src",
"strict": true,
"esModuleInterop": true,
"noImplicitAny": true,
"strictNullChecks": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
}

View File

@@ -32,4 +32,4 @@ async function init() {
});
}
client.login();
init().then(() => client.login())

View File

@@ -1,15 +1,15 @@
{
"compilerOptions": {
"resolveJsonModule": true,
"target": "ESNext",
"module": "CommonJS",
"outDir": "dist",
"rootDir": "src",
"strict": true,
"esModuleInterop": true,
"noImplicitAny": true,
"strictNullChecks": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
"compilerOptions": {
"resolveJsonModule": true,
"target": "ESNext",
"module": "CommonJS",
"outDir": "dist",
"rootDir": "src",
"strict": true,
"esModuleInterop": true,
"noImplicitAny": true,
"strictNullChecks": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
}