Skip to content

Commit

Permalink
feat: Add support for ES Module
Browse files Browse the repository at this point in the history
  • Loading branch information
The Alpha committed Feb 15, 2024
1 parent aba5113 commit e50676c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"types": "./types/exports.d.ts",
"exports": {
".": {
"import": "./src/exports.mjs",
"require": "./src/exports.js",
"default": "./src/exports.js",
"types": "./types/exports.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions src/exports.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { DiscordBot } from './class/discordBot'
export { asNumber, asString } from './func/colour'
export { applyStyle, asEmbed } from './func/style'

0 comments on commit e50676c

Please sign in to comment.