@kitschpatrol/remark-config 5.0.8 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +10 -1
- package/package.json +3 -2
package/bin/cli.js
CHANGED
|
@@ -627,6 +627,7 @@ var source_default = chalk;
|
|
|
627
627
|
|
|
628
628
|
// ../../src/command-builder.ts
|
|
629
629
|
import { cosmiconfig } from "cosmiconfig";
|
|
630
|
+
import { TypeScriptLoader as typeScriptLoader } from "cosmiconfig-typescript-loader";
|
|
630
631
|
import { execa } from "execa";
|
|
631
632
|
import fse2 from "fs-extra";
|
|
632
633
|
import fs3 from "node:fs";
|
|
@@ -5551,7 +5552,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
5551
5552
|
var yargs_default = Yargs;
|
|
5552
5553
|
|
|
5553
5554
|
// ../../package.json
|
|
5554
|
-
var version = "5.0
|
|
5555
|
+
var version = "5.1.0";
|
|
5555
5556
|
|
|
5556
5557
|
// ../../src/execa-utilities.ts
|
|
5557
5558
|
function isErrorExecaError(error) {
|
|
@@ -6180,6 +6181,14 @@ function getCosmiconfigCommand(configName) {
|
|
|
6180
6181
|
}
|
|
6181
6182
|
async function getCosmiconfigResult(configName) {
|
|
6182
6183
|
const explorer = cosmiconfig(configName, {
|
|
6184
|
+
loaders: {
|
|
6185
|
+
// Using the alternate typescript loader fixes ERR_MODULE_NOT_FOUND errors
|
|
6186
|
+
// in configuration files that import modules via a path
|
|
6187
|
+
// https://github.com/cosmiconfig/cosmiconfig/issues/345
|
|
6188
|
+
// https://github.com/Codex-/cosmiconfig-typescript-loader
|
|
6189
|
+
// Same approach taken in mdat's implementation...
|
|
6190
|
+
".ts": typeScriptLoader()
|
|
6191
|
+
},
|
|
6183
6192
|
searchStrategy: "project"
|
|
6184
6193
|
// Alt approach?
|
|
6185
6194
|
// searchStrategy: 'global',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/remark-config",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Markdown and MDX linting for @kitschpatrol/shared-config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shared-config",
|
|
@@ -45,11 +45,12 @@
|
|
|
45
45
|
"@pinojs/json-colorizer": "^4.0.0",
|
|
46
46
|
"@types/mdast": "^4.0.4",
|
|
47
47
|
"cosmiconfig": "^9.0.0",
|
|
48
|
+
"cosmiconfig-typescript-loader": "^6.1.0",
|
|
48
49
|
"execa": "^9.5.2",
|
|
49
50
|
"find-workspaces": "^0.3.1",
|
|
50
51
|
"fs-extra": "^11.3.0",
|
|
51
52
|
"mdast-util-to-markdown": "^2.1.2",
|
|
52
|
-
"prettier": "^3.5.
|
|
53
|
+
"prettier": "^3.5.3",
|
|
53
54
|
"remark-directive": "^4.0.0",
|
|
54
55
|
"remark-frontmatter": "^5.0.0",
|
|
55
56
|
"remark-gfm": "^4.0.1",
|