From 5468c015dc2bd2cc1f9593475b9daf6e33c7fc0f Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Tue, 6 Jul 2021 21:25:11 +0200 Subject: [PATCH] 2.0.0-beta5 - hybrid package --- README.md | 20 ++++++++++++-------- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index da6f53c..f2f4901 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # CommandBot -**2.0.0-beta4** +**2.0.0-beta5** > [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 @@ -44,15 +44,19 @@ Key features npm install commandbot@latest ``` -2. Add the following entry to your _package.json_ file - -```json -"type": "module" -``` - -3. Import the package +or yarn ```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"; ``` diff --git a/package-lock.json b/package-lock.json index f44bb90..3bad5bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "commandbot", - "version": "2.0.0-beta4", + "version": "2.0.0-beta5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "commandbot", - "version": "2.0.0-beta4", + "version": "2.0.0-beta5", "license": "MIT", "dependencies": { "discord.js": "^12.5.3" diff --git a/package.json b/package.json index 62ec05d..4d36e2b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "commandbot", - "version": "2.0.0-beta4", + "version": "2.0.0-beta5", "description": "A framework that helps you create your own Discord bot easier.", "main": "dist/cjs/index.js", "module": "dist/mjs/index.js",