Skip to content

Commit

Permalink
enabled cjs, disabled tests temp
Browse files Browse the repository at this point in the history
  • Loading branch information
retconned committed Sep 14, 2024
1 parent 865a470 commit 6057469
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
3 changes: 1 addition & 2 deletions examples/basic-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ client.on("ready", () => {
console.log(`Bot ready & logged into ${client.user?.tag}!`);
});

client.login({ process.env.TOKEN, process.env.COOKIES });
// client.login({ process.env.TOKEN, process.env.COOKIES });

client.on("ChatMessage", async (message: MessageData) => {
console.log(`${message.sender.username}: ${message.content}`);
Expand Down Expand Up @@ -36,7 +36,6 @@ client.on("ChatMessage", async (message: MessageData) => {
client.permanentBan(bannedUser);
}
}

});

client.on("Subscription", async (subscription) => {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"lint:ts": "tsc",
"lint:check": "eslint \"src/**/*.{ts,js}\"",
"lint:fix": "eslint --fix \"src/**/*.{ts,js}\"",
"ci": "npm run build && npm run format:check && npm run check-exports && npm run lint:ts && npm run test",
"check-exports": "attw --pack .",
"ci": "npm run build && npm run format:check && npm run check-exports && npm run lint:ts",
"check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
"test": "vitest run",
"dev": "vitest",
"local:release": "changeset version",
Expand Down
6 changes: 0 additions & 6 deletions src/tests/utils.test.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from "tsup";

export default defineConfig({
entryPoints: ["src/index.ts"],
format: ["esm"],
format: ["cjs", "esm"],
dts: true,
outDir: "dist",
clean: true,
Expand Down

0 comments on commit 6057469

Please sign in to comment.