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

chore: migrate to esm #7

Merged
merged 1 commit into from
Nov 30, 2023
Merged
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
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"
}
}