Skip to content

Commit

Permalink
feat: Convert to ESM
Browse files Browse the repository at this point in the history
feat: Upgrade to Hubot v11
BREAKING CHANGE: Requires Hubot v11
  • Loading branch information
joeyguerra committed Nov 13, 2023
1 parent 3c955a0 commit 8369811
Show file tree
Hide file tree
Showing 9 changed files with 321 additions and 445 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.nyc_output/
coverage
.hubot_history
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

A hubot script to persist hubot's brain using redis

See [`src/redis-brain.js`](src/redis-brain.js) for full documentation.
See [`src/RedisBrain.js`](src/RedisBrain.js) for full documentation.

## Installation

Expand Down
8 changes: 0 additions & 8 deletions index.js

This file was deleted.

10 changes: 10 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict'

import path from 'node:path'
import { fileURLToPath } from 'node:url'

const __dirname = path.dirname(fileURLToPath(import.meta.url))
export default (robot) => {
const scriptsPath = path.resolve(__dirname, 'src')
robot.loadFile(scriptsPath, 'RedisBrain.mjs')
}
Loading

0 comments on commit 8369811

Please sign in to comment.