diff --git a/examples/bigbot/.swcrc b/examples/bigbot/.swcrc index 4ef6f4156..9d61d7eec 100644 --- a/examples/bigbot/.swcrc +++ b/examples/bigbot/.swcrc @@ -14,7 +14,7 @@ "loose": true }, "module": { - "type": "nodenext", + "type": "es6", "strict": false, "strictMode": true, "lazy": false, diff --git a/packages/bot/.swcrc b/packages/bot/.swcrc index 1952bd763..0000defd2 100644 --- a/packages/bot/.swcrc +++ b/packages/bot/.swcrc @@ -14,7 +14,7 @@ "loose": true }, "module": { - "type": "nodenext", + "type": "es6", "strict": false, "strictMode": true, "lazy": false, diff --git a/packages/client/.swcrc b/packages/client/.swcrc index 1952bd763..0000defd2 100644 --- a/packages/client/.swcrc +++ b/packages/client/.swcrc @@ -14,7 +14,7 @@ "loose": true }, "module": { - "type": "nodenext", + "type": "es6", "strict": false, "strictMode": true, "lazy": false, diff --git a/packages/client/src/index.ts b/packages/client/src/index.ts index 397f6395b..6d90cb644 100644 --- a/packages/client/src/index.ts +++ b/packages/client/src/index.ts @@ -40,8 +40,8 @@ import { ExtendedUser } from './Structures/users/Extended.js' import User from './Structures/users/User.js' import Bucket from './utils/Bucket.js' import DiscordRESTError from './utils/DiscordRESTError.js' -// eslint-disable-next-line require-extensions/require-extensions -import { version as VERSION } from '../package.json' +// TODO: MAKE THIS DYNAMIC FROM PACKAGE.JSON +export const VERSION = "19.0.0"; export function DiscordenoClient(token: string, options: ClientOptions): Client { return new Client(token, options) diff --git a/packages/discordeno/.swcrc b/packages/discordeno/.swcrc index 1952bd763..0000defd2 100644 --- a/packages/discordeno/.swcrc +++ b/packages/discordeno/.swcrc @@ -14,7 +14,7 @@ "loose": true }, "module": { - "type": "nodenext", + "type": "es6", "strict": false, "strictMode": true, "lazy": false, diff --git a/packages/gateway/.swcrc b/packages/gateway/.swcrc index 1952bd763..0000defd2 100644 --- a/packages/gateway/.swcrc +++ b/packages/gateway/.swcrc @@ -14,7 +14,7 @@ "loose": true }, "module": { - "type": "nodenext", + "type": "es6", "strict": false, "strictMode": true, "lazy": false, diff --git a/packages/rest/.swcrc b/packages/rest/.swcrc index 1952bd763..0000defd2 100644 --- a/packages/rest/.swcrc +++ b/packages/rest/.swcrc @@ -14,7 +14,7 @@ "loose": true }, "module": { - "type": "nodenext", + "type": "es6", "strict": false, "strictMode": true, "lazy": false, diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json index 456cde3e5..aa31b6ab2 100644 --- a/packages/tsconfig/base.json +++ b/packages/tsconfig/base.json @@ -3,7 +3,7 @@ "display": "Default", "compilerOptions": { "target": "es2022", - "module": "ESNext", + "module": "es2022", "composite": false, "declaration": true, "declarationMap": true, diff --git a/packages/types/.swcrc b/packages/types/.swcrc index 1952bd763..0000defd2 100644 --- a/packages/types/.swcrc +++ b/packages/types/.swcrc @@ -14,7 +14,7 @@ "loose": true }, "module": { - "type": "nodenext", + "type": "es6", "strict": false, "strictMode": true, "lazy": false, diff --git a/packages/utils/.swcrc b/packages/utils/.swcrc index 1952bd763..0000defd2 100644 --- a/packages/utils/.swcrc +++ b/packages/utils/.swcrc @@ -14,7 +14,7 @@ "loose": true }, "module": { - "type": "nodenext", + "type": "es6", "strict": false, "strictMode": true, "lazy": false,