diff --git a/package.json b/package.json index 288eea8..9616193 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,9 @@ "name": "revcord", "version": "1.1.1", "description": "A discord-revolt bridge", - "type": "module", "scripts": { - "start": "node --experimental-specifier-resolution=node build/index.js", - "dev": "node --experimental-specifier-resolution=node --loader ts-node/esm index.ts", + "start": "node build/index.js", + "dev": "ts-node index.ts", "build": "tsc", "test": "echo \"Error: no test specified\" && exit 1" }, @@ -34,4 +33,4 @@ "@types/node": "^20.3.1", "ts-node": "^10.9.1" } -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json index 582eb34..ef2d908 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,24 +1,16 @@ { - "compilerOptions": { - "module": "es2015", - "baseUrl": "./", - "outDir": "build", - "target": "es6", - "allowJs": true, - "checkJs": true, - "esModuleInterop": true, - "moduleResolution": "node", - "lib": [ - "es2021" - ], - "forceConsistentCasingInFileNames": true, - "skipLibCheck": true - }, - "include": [ - "index.ts", - "app/**/*.ts" - ], - "exclude": [ - "./webui" - ] -} \ No newline at end of file + "compilerOptions": { + "module": "commonjs", + "baseUrl": "./", + "outDir": "build", + "target": "es6", + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "moduleResolution": "node", + "lib": ["es2021"], + "forceConsistentCasingInFileNames": true, + "skipLibCheck": true + }, + "include": ["index.ts", "app/**/*.ts"] +}