Skip to content

Commit 934d09d

Browse files
committed
Use .cjs extension for markdownlint-micromark output files for clarity.
1 parent 90e4411 commit 934d09d

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"demo/markdownlint-browser.js",
1616
"demo/markdownlint-browser.min.js",
1717
"example/typescript/type-check.js",
18-
"micromark/micromark.js",
19-
"micromark/micromark.dev.js",
18+
"micromark/micromark.cjs",
19+
"micromark/micromark.dev.cjs",
2020
"test-repos/"
2121
],
2222
"overrides": [

lib/micromark.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
const assert = require("node:assert/strict");
88
// @ts-ignore
9-
const { parse, postprocess, preprocess } = require("../micromark/micromark.js");
9+
const { parse, postprocess, preprocess } = require("../micromark/micromark.cjs");
1010

1111
/**
1212
* Markdown token.

micromark/.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
exports.mjs
2-
micromark.dev.js
2+
micromark.dev.cjs
33
webpack.config.js

micromark/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"description": "A trivial package that re-exports some micromark functionality as a CommonJS module",
55
"type": "commonjs",
6-
"exports": "./micromark.js",
6+
"exports": "./micromark.cjs",
77
"author": "David Anson (https://dlaa.me/)",
88
"license": "MIT",
99
"homepage": "https://github.com/DavidAnson/markdownlint",

micromark/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = [
1919
"mode": "production",
2020
"output": {
2121
...shared.output,
22-
"filename": "micromark.js"
22+
"filename": "micromark.cjs"
2323
}
2424
},
2525
{
@@ -28,7 +28,7 @@ module.exports = [
2828
"mode": "development",
2929
"output": {
3030
...shared.output,
31-
"filename": "micromark.dev.js"
31+
"filename": "micromark.dev.cjs"
3232
}
3333
}
3434
];

0 commit comments

Comments
 (0)