Skip to content

Commit

Permalink
Use .cjs extension for markdownlint-micromark output files for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Feb 25, 2023
1 parent c9e8f8b commit fc2ed22
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Expand Up @@ -15,8 +15,8 @@
"demo/markdownlint-browser.js",
"demo/markdownlint-browser.min.js",
"example/typescript/type-check.js",
"micromark/micromark.js",
"micromark/micromark.dev.js",
"micromark/micromark.cjs",
"micromark/micromark.dev.cjs",
"test-repos/"
],
"overrides": [
Expand Down
2 changes: 1 addition & 1 deletion lib/micromark.cjs
Expand Up @@ -6,7 +6,7 @@

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

/**
* Markdown token.
Expand Down
2 changes: 1 addition & 1 deletion micromark/.npmignore
@@ -1,3 +1,3 @@
exports.mjs
micromark.dev.js
micromark.dev.cjs
webpack.config.js
2 changes: 1 addition & 1 deletion micromark/package.json
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"description": "A trivial package that re-exports some micromark functionality as a CommonJS module",
"type": "commonjs",
"exports": "./micromark.js",
"exports": "./micromark.cjs",
"author": "David Anson (https://dlaa.me/)",
"license": "MIT",
"homepage": "https://github.com/DavidAnson/markdownlint",
Expand Down
4 changes: 2 additions & 2 deletions micromark/webpack.config.js
Expand Up @@ -19,7 +19,7 @@ module.exports = [
"mode": "production",
"output": {
...shared.output,
"filename": "micromark.js"
"filename": "micromark.cjs"
}
},
{
Expand All @@ -28,7 +28,7 @@ module.exports = [
"mode": "development",
"output": {
...shared.output,
"filename": "micromark.dev.js"
"filename": "micromark.dev.cjs"
}
}
];

0 comments on commit fc2ed22

Please sign in to comment.