Archived
2.0.0-beta5 - hybrid package
This commit is contained in:
1 parent
cb9f27d2b3
commit
5468c015dc
3 files changed
+15
-11
No files matched your search
@@ -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";
|
||||
```
|
||||
|
||||
|
||||
Generated
+2
-2
@@ -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"
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user