@kitschpatrol/stylelint-config 5.0.8 → 5.2.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.2.0";
|
|
5555
5556
|
|
|
5556
5557
|
// ../../src/execa-utilities.ts
|
|
5557
5558
|
function isErrorExecaError(error) {
|
|
@@ -6163,6 +6164,14 @@ async function buildCommands(commandDefinition2) {
|
|
|
6163
6164
|
}
|
|
6164
6165
|
async function getCosmiconfigResult(configName) {
|
|
6165
6166
|
const explorer = cosmiconfig(configName, {
|
|
6167
|
+
loaders: {
|
|
6168
|
+
// Using the alternate typescript loader fixes ERR_MODULE_NOT_FOUND errors
|
|
6169
|
+
// in configuration files that import modules via a path
|
|
6170
|
+
// https://github.com/cosmiconfig/cosmiconfig/issues/345
|
|
6171
|
+
// https://github.com/Codex-/cosmiconfig-typescript-loader
|
|
6172
|
+
// Same approach taken in mdat's implementation...
|
|
6173
|
+
".ts": typeScriptLoader()
|
|
6174
|
+
},
|
|
6166
6175
|
searchStrategy: "project"
|
|
6167
6176
|
// Alt approach?
|
|
6168
6177
|
// searchStrategy: 'global',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/stylelint-config",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "Stylelint configuration for @kitschpatrol/shared-config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stylelint-config",
|
|
@@ -42,10 +42,11 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@pinojs/json-colorizer": "^4.0.0",
|
|
44
44
|
"cosmiconfig": "^9.0.0",
|
|
45
|
+
"cosmiconfig-typescript-loader": "^6.1.0",
|
|
45
46
|
"execa": "^9.5.2",
|
|
46
47
|
"find-workspaces": "^0.3.1",
|
|
47
48
|
"fs-extra": "^11.3.0",
|
|
48
|
-
"prettier": "^3.5.
|
|
49
|
+
"prettier": "^3.5.3",
|
|
49
50
|
"stylelint": "^16.15.0",
|
|
50
51
|
"stylelint-config-clean-order": "^7.0.0",
|
|
51
52
|
"stylelint-config-html": "^1.1.0",
|