Skip to content

Commit

Permalink
chore: migrate to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
mstroppel committed Nov 30, 2023
1 parent e003307 commit 6aa08e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
},
"rules": {}
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const visit = require("unist-util-visit");
const plantuml = require("node-plantuml");
import visit from "unist-util-visit";
import plantuml from "node-plantuml";

/**
* Plugin for remark-js
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "@mstroppel/remark-local-plantuml",
"version": "0.0.1",
"description": "`remark-local-plantuml` is a simple plugin for [remarkjs](https://github.com/remarkjs/remark) that converts PlantUML code written in Markdown to inline image.",
"main": "./index.js",
"type": "module",
"exports": "./index.js",
"scripts": {
"test": "mocha --timeout 5000",
"coverage": "nyc npm run test",
Expand Down Expand Up @@ -39,5 +40,8 @@
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=18"
}
}

0 comments on commit 6aa08e0

Please sign in to comment.