@kitschpatrol/cspell-config 5.0.6 → 5.0.8
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 +20 -10
- package/package.json +2 -3
package/bin/cli.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from "module";
|
|
3
|
+
const require = createRequire(import.meta.url);
|
|
2
4
|
var __create = Object.create;
|
|
3
5
|
var __defProp = Object.defineProperty;
|
|
4
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -635,7 +637,7 @@ import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
|
635
637
|
// ../../node_modules/.pnpm/package-up@5.0.0/node_modules/package-up/index.js
|
|
636
638
|
import process4 from "node:process";
|
|
637
639
|
|
|
638
|
-
// ../../node_modules/.pnpm/find-up-simple@1.0.
|
|
640
|
+
// ../../node_modules/.pnpm/find-up-simple@1.0.1/node_modules/find-up-simple/index.js
|
|
639
641
|
import process3 from "node:process";
|
|
640
642
|
import fsPromises from "node:fs/promises";
|
|
641
643
|
import { fileURLToPath } from "node:url";
|
|
@@ -650,8 +652,9 @@ async function findUp(name, {
|
|
|
650
652
|
let directory = path.resolve(toPath(cwd) ?? "");
|
|
651
653
|
const { root } = path.parse(directory);
|
|
652
654
|
stopAt = path.resolve(directory, toPath(stopAt ?? root));
|
|
653
|
-
|
|
654
|
-
|
|
655
|
+
const isAbsoluteName = path.isAbsolute(name);
|
|
656
|
+
while (directory) {
|
|
657
|
+
const filePath = isAbsoluteName ? name : path.join(directory, name);
|
|
655
658
|
try {
|
|
656
659
|
const stats = await fsPromises.stat(filePath);
|
|
657
660
|
if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) {
|
|
@@ -659,6 +662,9 @@ async function findUp(name, {
|
|
|
659
662
|
}
|
|
660
663
|
} catch {
|
|
661
664
|
}
|
|
665
|
+
if (directory === stopAt || directory === root) {
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
662
668
|
directory = path.dirname(directory);
|
|
663
669
|
}
|
|
664
670
|
}
|
|
@@ -670,8 +676,9 @@ function findUpSync(name, {
|
|
|
670
676
|
let directory = path.resolve(toPath(cwd) ?? "");
|
|
671
677
|
const { root } = path.parse(directory);
|
|
672
678
|
stopAt = path.resolve(directory, toPath(stopAt) ?? root);
|
|
673
|
-
|
|
674
|
-
|
|
679
|
+
const isAbsoluteName = path.isAbsolute(name);
|
|
680
|
+
while (directory) {
|
|
681
|
+
const filePath = isAbsoluteName ? name : path.join(directory, name);
|
|
675
682
|
try {
|
|
676
683
|
const stats = fs.statSync(filePath, { throwIfNoEntry: false });
|
|
677
684
|
if (type === "file" && stats?.isFile() || type === "directory" && stats?.isDirectory()) {
|
|
@@ -679,6 +686,9 @@ function findUpSync(name, {
|
|
|
679
686
|
}
|
|
680
687
|
} catch {
|
|
681
688
|
}
|
|
689
|
+
if (directory === stopAt || directory === root) {
|
|
690
|
+
break;
|
|
691
|
+
}
|
|
682
692
|
directory = path.dirname(directory);
|
|
683
693
|
}
|
|
684
694
|
}
|
|
@@ -5541,7 +5551,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
5541
5551
|
var yargs_default = Yargs;
|
|
5542
5552
|
|
|
5543
5553
|
// ../../package.json
|
|
5544
|
-
var version = "5.0.
|
|
5554
|
+
var version = "5.0.8";
|
|
5545
5555
|
|
|
5546
5556
|
// ../../src/execa-utilities.ts
|
|
5547
5557
|
function isErrorExecaError(error) {
|
|
@@ -5852,11 +5862,11 @@ async function executeCliCommand(logStream, positionalArguments, optionFlags, co
|
|
|
5852
5862
|
env: {
|
|
5853
5863
|
// Use colorful output unless NO_COLOR is set
|
|
5854
5864
|
// eslint-disable-next-line ts/naming-convention
|
|
5855
|
-
...process.env.NO_COLOR === void 0 ? { FORCE_COLOR: "true" } : {}
|
|
5856
|
-
// Quiet
|
|
5865
|
+
...process.env.NO_COLOR === void 0 ? { FORCE_COLOR: "true" } : {}
|
|
5866
|
+
// Quiet Node when processing *.config.ts files in Node 22
|
|
5857
5867
|
// Suppress experimental type stripping warning with --no-warnings
|
|
5858
|
-
//
|
|
5859
|
-
NODE_OPTIONS:
|
|
5868
|
+
// TODO what's the story here on Node 20?
|
|
5869
|
+
// NODE_OPTIONS: '--experimental-strip-types --disable-warning=ExperimentalWarning',
|
|
5860
5870
|
},
|
|
5861
5871
|
preferLocal: true,
|
|
5862
5872
|
reject: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/cspell-config",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.8",
|
|
4
4
|
"description": "CSpell configuration for @kitschpatrol/shared-config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shared-config",
|
|
@@ -54,8 +54,7 @@
|
|
|
54
54
|
"prettier": "^3.5.2"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
|
-
"node": ">=
|
|
58
|
-
"pnpm": ">=10.0.0"
|
|
57
|
+
"node": ">=20.9.0"
|
|
59
58
|
},
|
|
60
59
|
"publishConfig": {
|
|
61
60
|
"access": "public"
|