Skip to content

Commit d314038

Browse files
committed
new
1 parent 62514ad commit d314038

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"version": "1.0.1",
44
"description": "An Advanced Package Manager for discord.js",
55
"main": "./src/index.js",
6-
"files": [
7-
"src"
8-
],
6+
"types": "./typings/index.d.ts",
97
"scripts": {
108
"test": "echo \"Error: no test specified\" && exit 1",
119
"build": "node src/index.js"

src/features/markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const typeFormat = {
3030
'BOTH': '1;4;'
3131
}
3232
// export the class
33-
export default class Markdown {
33+
module.exports = class Markdown {
3434
constructor() {
3535
/**
3636
* @type {string} String before format

src/features/paginate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { EmbedBuilder, CommandInteraction, Message, ButtonBuilder, ActionRowBuilder, ButtonStyle, ComponentType } from 'discord.js';
2-
export default class Pagination {
1+
const { EmbedBuilder, CommandInteraction, Message, ButtonBuilder, ActionRowBuilder, ButtonStyle, ComponentType } = require('discord.js');
2+
module.exports = class Pagination {
33
constructor() {
44
this.paginateOptions = {
55
style: ButtonStyle.Primary,

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
Paginate: require('./features/paginate.js').default,
3-
Markdown: require('./features/markdown.js').default
2+
Paginate: require('./features/paginate.js'),
3+
Markdown: require('./features/markdown.js'),
44
}
File renamed without changes.

0 commit comments

Comments
 (0)