2.0.0-beta5 - hybrid package

This commit is contained in:
mmacierzanka committed 2021-07-06 21:25:11 +02:00
1 parent cb9f27d2b3
commit 5468c015dc
3 files changed
+15 -11

No files matched your search

+12 -8
View File
@@ -1,6 +1,6 @@
# CommandBot # CommandBot
**2.0.0-beta4** **2.0.0-beta5**
> [IMPORTANT] > [IMPORTANT]
> Upgrading to this version from 1.1.3 may require additional changes in your code since 2.0.0 is not fully backwards compatible > Upgrading to this version from 1.1.3 may require additional changes in your code since 2.0.0 is not fully backwards compatible
@@ -44,15 +44,19 @@ Key features
npm install commandbot@latest npm install commandbot@latest
``` ```
2. Add the following entry to your _package.json_ file or yarn
```json
"type": "module"
```
3. Import the package
```javascript ```javascript
yarn add commandbot@latest
```
2. Import the package
```javascript
//CommonJS
const { Bot, Command } = require("commandbot");
//ES Modules (to use this option add "type": "module" to your package.json file)
import { Bot, Command } from "commandbot"; import { Bot, Command } from "commandbot";
``` ```
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "commandbot", "name": "commandbot",
"version": "2.0.0-beta4", "version": "2.0.0-beta5",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "commandbot", "name": "commandbot",
"version": "2.0.0-beta4", "version": "2.0.0-beta5",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"discord.js": "^12.5.3" "discord.js": "^12.5.3"
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "commandbot", "name": "commandbot",
"version": "2.0.0-beta4", "version": "2.0.0-beta5",
"description": "A framework that helps you create your own Discord bot easier.", "description": "A framework that helps you create your own Discord bot easier.",
"main": "dist/cjs/index.js", "main": "dist/cjs/index.js",
"module": "dist/mjs/index.js", "module": "dist/mjs/index.js",