Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade/esm #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ Set the following variables:
* `HUBOT_MATRIX_HOST_SERVER` - the Matrix server to connect to (default is `https://matrix.org` if unset)
* `HUBOT_MATRIX_USER` - bot login on the Matrix server - eg `@examplebotname:matrix.example.org`
* `HUBOT_MATRIX_PASSWORD` - bot password on the Matrix server

## Tests

Since jest only runs mjs tests with experimental-vm-modules you need to set them when running the tests...

```shell
NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" npm run test
```
5 changes: 5 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"testMatch": [
"**/*.test.mjs"
]
}
23 changes: 5 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "hubot-matrix",
"description": "Matrix adapter for Hubot",
"license": "MIT",
"main": "src/matrix.js",
"main": "src/matrix.mjs",
"dependencies": {
"image-size": "^1.0.2",
"matrix-js-sdk": "^30.0.0",
Expand All @@ -12,10 +12,11 @@
"request": "^2.88.2"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"jest": "^29.7.0"
},
"peerDependencies": {
"hubot": ">=9.0"
"hubot": "^11.1.1"
},
"scripts": {
"test": "jest"
Expand Down
186 changes: 0 additions & 186 deletions src/matrix.js

This file was deleted.

Loading