@kitschpatrol/mdat-config 5.0.5 → 5.0.7
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 +24 -14
- package/package.json +4 -5
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,14 +5551,14 @@ 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.7";
|
|
5545
5555
|
|
|
5546
|
-
// ../../src/execa-
|
|
5556
|
+
// ../../src/execa-utilities.ts
|
|
5547
5557
|
function isErrorExecaError(error) {
|
|
5548
5558
|
return error instanceof Error && "exitCode" in error && typeof error.exitCode === "number";
|
|
5549
5559
|
}
|
|
5550
5560
|
|
|
5551
|
-
// ../../src/json-
|
|
5561
|
+
// ../../src/json-utilities.ts
|
|
5552
5562
|
import jsonColorizer from "@pinojs/json-colorizer";
|
|
5553
5563
|
|
|
5554
5564
|
// ../../node_modules/.pnpm/decircular@1.0.0/node_modules/decircular/index.js
|
|
@@ -5573,7 +5583,7 @@ function decircular(object) {
|
|
|
5573
5583
|
return internalDecircular(object);
|
|
5574
5584
|
}
|
|
5575
5585
|
|
|
5576
|
-
// ../../src/json-
|
|
5586
|
+
// ../../src/json-utilities.ts
|
|
5577
5587
|
var import_deepmerge = __toESM(require_cjs(), 1);
|
|
5578
5588
|
|
|
5579
5589
|
// ../../node_modules/.pnpm/json-stringify-pretty-compact@4.0.0/node_modules/json-stringify-pretty-compact/index.js
|
|
@@ -5655,7 +5665,7 @@ ${currentIndent}`
|
|
|
5655
5665
|
}(passedObj, "", 0);
|
|
5656
5666
|
}
|
|
5657
5667
|
|
|
5658
|
-
// ../../src/json-
|
|
5668
|
+
// ../../src/json-utilities.ts
|
|
5659
5669
|
function stringify2(object) {
|
|
5660
5670
|
return jsonColorizer(
|
|
5661
5671
|
stringify(decircular(object), {
|
|
@@ -5692,7 +5702,7 @@ function merge(destination, source, options = { arrayMerge: combineMerge }) {
|
|
|
5692
5702
|
return (0, import_deepmerge.default)(destination, source, options);
|
|
5693
5703
|
}
|
|
5694
5704
|
|
|
5695
|
-
// ../../src/path-
|
|
5705
|
+
// ../../src/path-utilities.ts
|
|
5696
5706
|
import { findWorkspaces, findWorkspacesRoot } from "find-workspaces";
|
|
5697
5707
|
import fse from "fs-extra";
|
|
5698
5708
|
import path2 from "node:path";
|
|
@@ -5743,7 +5753,7 @@ function getCwdOverride(option) {
|
|
|
5743
5753
|
return process.cwd();
|
|
5744
5754
|
}
|
|
5745
5755
|
|
|
5746
|
-
// ../../src/prettier-
|
|
5756
|
+
// ../../src/prettier-utilities.ts
|
|
5747
5757
|
import fs2 from "node:fs/promises";
|
|
5748
5758
|
async function formatTextAndSaveFile(filePath, content) {
|
|
5749
5759
|
try {
|
|
@@ -5766,7 +5776,7 @@ async function formatFileInPlace(filePath) {
|
|
|
5766
5776
|
}
|
|
5767
5777
|
}
|
|
5768
5778
|
|
|
5769
|
-
// ../../src/stream-
|
|
5779
|
+
// ../../src/stream-utilities.ts
|
|
5770
5780
|
import { Transform } from "node:stream";
|
|
5771
5781
|
function createStreamTransform(logPrefix, logColor) {
|
|
5772
5782
|
return new Transform({
|
|
@@ -5794,7 +5804,7 @@ async function streamToString(stream) {
|
|
|
5794
5804
|
});
|
|
5795
5805
|
}
|
|
5796
5806
|
|
|
5797
|
-
// ../../src/string-
|
|
5807
|
+
// ../../src/string-utilities.ts
|
|
5798
5808
|
function pluralize(text, quantity) {
|
|
5799
5809
|
return quantity === 1 ? text : text + "s";
|
|
5800
5810
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/mdat-config",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.7",
|
|
4
4
|
"description": "MDAT configuration for @kitschpatrol/shared-config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shared-config",
|
|
@@ -48,12 +48,11 @@
|
|
|
48
48
|
"execa": "^9.5.2",
|
|
49
49
|
"find-workspaces": "^0.3.1",
|
|
50
50
|
"fs-extra": "^11.3.0",
|
|
51
|
-
"mdat": "^0.
|
|
52
|
-
"prettier": "^3.5.
|
|
51
|
+
"mdat": "^1.0.0",
|
|
52
|
+
"prettier": "^3.5.2"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
56
|
-
"pnpm": ">=10.0.0"
|
|
55
|
+
"node": ">=20.9.0"
|
|
57
56
|
},
|
|
58
57
|
"publishConfig": {
|
|
59
58
|
"access": "public"
|