@ehildt/depbadge 1.0.4 → 1.0.6

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/README.md CHANGED
@@ -9,9 +9,7 @@ Depbadge handles both dependency badges and third-party status badges (e.g., rel
9
9
  By automating badge generation, Depbadge solves common problems: outdated badges, inconsistent styling, and manual maintenance overhead — keeping your documentation visually consistent and trustworthy.
10
10
 
11
11
  <br>
12
- <br>
13
- <details align="center">
14
- <summary>Supported Manifest Files</summary>
12
+ <div align="center">
15
13
 
16
14
  ### Official / Extended Support
17
15
 
@@ -19,19 +17,10 @@ By automating badge generation, Depbadge solves common problems: outdated badges
19
17
  **`pyproject.toml`** – Python projects (PEP 621)
20
18
  **`Cargo.toml`** – Rust projects
21
19
 
22
- </details>
23
- <br>
24
- <br>
25
-
26
- <div align="center">
27
-
28
- **`-- THE BADGES BELOW WERE CREATED USING DEPBADGE --`**
29
20
  </div>
30
-
31
21
  <br>
32
22
  <br>
33
23
 
34
-
35
24
  <!-- DEPBADGE:START -->
36
25
  <div align="center">
37
26
 
@@ -57,7 +46,7 @@ By automating badge generation, Depbadge solves common problems: outdated badges
57
46
 
58
47
  <div align="center">
59
48
 
60
- [![@changesets/cli](https://img.shields.io/badge/_changesets_cli-v2.29.8-hsl(82%2C70%25%2C43%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=npm&logoColor=hsl%2882%2C70%25%2C43%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
49
+ [![@changesets/cli](https://img.shields.io/badge/_changesets_cli-v2.30.0-hsl(82%2C70%25%2C43%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=npm&logoColor=hsl%2882%2C70%25%2C43%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
61
50
  [![@eslint/js](https://img.shields.io/badge/_eslint_js-v10.0.1-hsl(279%2C66%25%2C40%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=eslint&logoColor=hsl%28279%2C66%25%2C40%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
62
51
  [![@types/eslint](https://img.shields.io/badge/_types_eslint-v9.6.1-hsl(303%2C68%25%2C53%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=eslint&logoColor=hsl%28303%2C68%25%2C53%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
63
52
  [![@types/jest](https://img.shields.io/badge/_types_jest-v30.0.0-hsl(218%2C76%25%2C45%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=jest&logoColor=hsl%28218%2C76%25%2C45%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
@@ -77,7 +66,7 @@ By automating badge generation, Depbadge solves common problems: outdated badges
77
66
  [![jest-extended](https://img.shields.io/badge/jest_extended-v7.0.0-hsl(26%2C75%25%2C49%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=jest&logoColor=hsl%2826%2C75%25%2C49%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
78
67
  [![jest-junit](https://img.shields.io/badge/jest_junit-v16.0.0-hsl(93%2C76%25%2C47%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=jest&logoColor=hsl%2893%2C76%25%2C47%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
79
68
  [![jiti](https://img.shields.io/badge/jiti-v2.6.1-hsl(132%2C63%25%2C44%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=npm&logoColor=hsl%28132%2C63%25%2C44%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
80
- [![lint-staged](https://img.shields.io/badge/lint_staged-v16.3.1-hsl(48%2C74%25%2C51%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=npm&logoColor=hsl%2848%2C74%25%2C51%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
69
+ [![lint-staged](https://img.shields.io/badge/lint_staged-v16.3.2-hsl(48%2C74%25%2C51%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=npm&logoColor=hsl%2848%2C74%25%2C51%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
81
70
  [![npm-check-updates](https://img.shields.io/badge/npm_check_updates-v19.6.3-hsl(131%2C73%25%2C44%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=npm&logoColor=hsl%28131%2C73%25%2C44%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
82
71
  [![rimraf](https://img.shields.io/badge/rimraf-v6.1.3-hsl(145%2C65%25%2C40%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=npm&logoColor=hsl%28145%2C65%25%2C40%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
83
72
  [![source-map-support](https://img.shields.io/badge/source_map_support-v0.5.21-hsl(124%2C63%25%2C49%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=npm&logoColor=hsl%28124%2C63%25%2C49%25%29&logoWidth=40&style=flat-square)](https://www.npmjs.com/package/example_package)
@@ -93,13 +82,12 @@ By automating badge generation, Depbadge solves common problems: outdated badges
93
82
  <!-- DEPBADGE:END -->
94
83
 
95
84
  <br>
96
- <br>
85
+
97
86
 
98
87
  <div align="center">
99
88
 
100
89
  [E-MAIL](mailto:eugen.hildt@gmail.com) &nbsp;—&nbsp; [WIKI](https://github.com/ehildt/depbadge/wiki) &nbsp;—&nbsp; [ISSUES](https://github.com/ehildt/depbadge/issues) &nbsp;—&nbsp; [DONATE](https://github.com/sponsors/ehildt)
101
90
 
102
- </div>
103
91
 
104
- <br>
92
+ </div>
105
93
  <br>
@@ -1,6 +1,11 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from 'module';
3
+ import path2 from 'path';
4
+ import 'url';
5
+ import fs2 from 'fs';
6
+ import crypto from 'crypto';
1
7
 
2
- import { createRequire } from 'module';
3
- const require = createRequire(import.meta.url);
8
+ const require$1 = createRequire(import.meta.url);
4
9
 
5
10
  var __create = Object.create;
6
11
  var __defProp = Object.defineProperty;
@@ -8,10 +13,10 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
13
  var __getOwnPropNames = Object.getOwnPropertyNames;
9
14
  var __getProtoOf = Object.getPrototypeOf;
10
15
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
12
- get: (a2, b2) => (typeof require !== "undefined" ? require : a2)[b2]
16
+ var __require = /* @__PURE__ */ ((x2) => typeof require$1 !== "undefined" ? require$1 : typeof Proxy !== "undefined" ? new Proxy(x2, {
17
+ get: (a2, b2) => (typeof require$1 !== "undefined" ? require$1 : a2)[b2]
13
18
  }) : x2)(function(x2) {
14
- if (typeof require !== "undefined") return require.apply(this, arguments);
19
+ if (typeof require$1 !== "undefined") return require$1.apply(this, arguments);
15
20
  throw Error('Dynamic require of "' + x2 + '" is not supported');
16
21
  });
17
22
  var __esm = (fn, res) => function __init() {
@@ -33,23 +38,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
38
  // file that has been converted to a CommonJS file using a Babel-
34
39
  // compatible transform (i.e. "__esModule" has not been set), then set
35
40
  // "default" to the CommonJS "module.exports" for node compatibility.
36
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
41
+ __defProp(target, "default", { value: mod, enumerable: true }) ,
37
42
  mod
38
43
  ));
39
-
40
- // node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/esm_shims.js
41
- import path from "path";
42
- import { fileURLToPath } from "url";
43
44
  var init_esm_shims = __esm({
44
45
  "node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.6_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/esm_shims.js"() {
45
- "use strict";
46
46
  }
47
47
  });
48
48
 
49
49
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/parser.js
50
50
  var require_parser = __commonJS({
51
51
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/parser.js"(exports2, module2) {
52
- "use strict";
53
52
  init_esm_shims();
54
53
  var ParserEND = 1114112;
55
54
  var ParserError = class _ParserError extends Error {
@@ -175,7 +174,6 @@ var require_parser = __commonJS({
175
174
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime.js
176
175
  var require_create_datetime = __commonJS({
177
176
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime.js"(exports2, module2) {
178
- "use strict";
179
177
  init_esm_shims();
180
178
  module2.exports = (value) => {
181
179
  const date = new Date(value);
@@ -191,7 +189,6 @@ var require_create_datetime = __commonJS({
191
189
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/format-num.js
192
190
  var require_format_num = __commonJS({
193
191
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/format-num.js"(exports2, module2) {
194
- "use strict";
195
192
  init_esm_shims();
196
193
  module2.exports = (d2, num) => {
197
194
  num = String(num);
@@ -204,7 +201,6 @@ var require_format_num = __commonJS({
204
201
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime-float.js
205
202
  var require_create_datetime_float = __commonJS({
206
203
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime-float.js"(exports2, module2) {
207
- "use strict";
208
204
  init_esm_shims();
209
205
  var f2 = require_format_num();
210
206
  var FloatingDateTime = class extends Date {
@@ -232,7 +228,6 @@ var require_create_datetime_float = __commonJS({
232
228
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-date.js
233
229
  var require_create_date = __commonJS({
234
230
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-date.js"(exports2, module2) {
235
- "use strict";
236
231
  init_esm_shims();
237
232
  var f2 = require_format_num();
238
233
  var DateTime = global.Date;
@@ -259,7 +254,6 @@ var require_create_date = __commonJS({
259
254
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-time.js
260
255
  var require_create_time = __commonJS({
261
256
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-time.js"(exports2, module2) {
262
- "use strict";
263
257
  init_esm_shims();
264
258
  var f2 = require_format_num();
265
259
  var Time = class extends Date {
@@ -284,8 +278,7 @@ var require_create_time = __commonJS({
284
278
 
285
279
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/toml-parser.js
286
280
  var require_toml_parser = __commonJS({
287
- "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/toml-parser.js"(exports, module) {
288
- "use strict";
281
+ "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/toml-parser.js"(exports$1, module) {
289
282
  init_esm_shims();
290
283
  module.exports = makeParserClass(require_parser());
291
284
  module.exports.makeParserClass = makeParserClass;
@@ -1599,7 +1592,6 @@ var require_toml_parser = __commonJS({
1599
1592
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-pretty-error.js
1600
1593
  var require_parse_pretty_error = __commonJS({
1601
1594
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-pretty-error.js"(exports2, module2) {
1602
- "use strict";
1603
1595
  init_esm_shims();
1604
1596
  module2.exports = prettyError;
1605
1597
  function prettyError(err, buf) {
@@ -1636,7 +1628,6 @@ var require_parse_pretty_error = __commonJS({
1636
1628
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-string.js
1637
1629
  var require_parse_string = __commonJS({
1638
1630
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-string.js"(exports2, module2) {
1639
- "use strict";
1640
1631
  init_esm_shims();
1641
1632
  module2.exports = parseString;
1642
1633
  var TOMLParser = require_toml_parser();
@@ -1659,7 +1650,6 @@ var require_parse_string = __commonJS({
1659
1650
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-async.js
1660
1651
  var require_parse_async = __commonJS({
1661
1652
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-async.js"(exports2, module2) {
1662
- "use strict";
1663
1653
  init_esm_shims();
1664
1654
  module2.exports = parseAsync;
1665
1655
  var TOMLParser = require_toml_parser();
@@ -1694,7 +1684,6 @@ var require_parse_async = __commonJS({
1694
1684
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-stream.js
1695
1685
  var require_parse_stream = __commonJS({
1696
1686
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-stream.js"(exports2, module2) {
1697
- "use strict";
1698
1687
  init_esm_shims();
1699
1688
  module2.exports = parseStream;
1700
1689
  var stream = __require("stream");
@@ -1703,7 +1692,7 @@ var require_parse_stream = __commonJS({
1703
1692
  if (stm) {
1704
1693
  return parseReadable(stm);
1705
1694
  } else {
1706
- return parseTransform(stm);
1695
+ return parseTransform();
1707
1696
  }
1708
1697
  }
1709
1698
  function parseReadable(stm) {
@@ -1774,7 +1763,6 @@ var require_parse_stream = __commonJS({
1774
1763
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse.js
1775
1764
  var require_parse = __commonJS({
1776
1765
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse.js"(exports2, module2) {
1777
- "use strict";
1778
1766
  init_esm_shims();
1779
1767
  module2.exports = require_parse_string();
1780
1768
  module2.exports.async = require_parse_async();
@@ -1786,7 +1774,6 @@ var require_parse = __commonJS({
1786
1774
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/stringify.js
1787
1775
  var require_stringify = __commonJS({
1788
1776
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/stringify.js"(exports2, module2) {
1789
- "use strict";
1790
1777
  init_esm_shims();
1791
1778
  module2.exports = stringify;
1792
1779
  module2.exports.value = stringifyInline;
@@ -2048,7 +2035,6 @@ var require_stringify = __commonJS({
2048
2035
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/toml.js
2049
2036
  var require_toml = __commonJS({
2050
2037
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/toml.js"(exports2) {
2051
- "use strict";
2052
2038
  init_esm_shims();
2053
2039
  exports2.parse = require_parse();
2054
2040
  exports2.stringify = require_stringify();
@@ -2076,17 +2062,14 @@ function useCtxCallback(callback) {
2076
2062
 
2077
2063
  // src/depbadgerc/apply-markdown-to-target.ts
2078
2064
  init_esm_shims();
2079
- import fs2 from "fs";
2080
2065
 
2081
2066
  // src/shared/find-file.ts
2082
2067
  init_esm_shims();
2083
- import fs from "fs";
2084
- import path2 from "path";
2085
2068
  function findFile(filename, startDir = process.cwd()) {
2086
2069
  let dir = startDir;
2087
2070
  while (true) {
2088
2071
  const candidate = path2.join(dir, filename);
2089
- if (fs.existsSync(candidate)) return candidate;
2072
+ if (fs2.existsSync(candidate)) return candidate;
2090
2073
  const parent = path2.dirname(dir);
2091
2074
  if (parent === dir) break;
2092
2075
  dir = parent;
@@ -2128,7 +2111,6 @@ ${renderedMarkdown}
2128
2111
 
2129
2112
  // src/depbadgerc/compute-state-integrity.ts
2130
2113
  init_esm_shims();
2131
- import crypto from "crypto";
2132
2114
 
2133
2115
  // node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.mjs
2134
2116
  init_esm_shims();
@@ -4957,7 +4939,6 @@ var mapStatusBadgesToMarkdown = useCtxCallback(
4957
4939
 
4958
4940
  // src/depbadgerc/output-markdown-preview.io.ts
4959
4941
  init_esm_shims();
4960
- import fs3 from "fs";
4961
4942
  var outputMarkdownPreview = useCtxCallback(
4962
4943
  (store, type2, badgeMarkdownMap, dir = ".depbadge") => {
4963
4944
  const md = Object.entries(badgeMarkdownMap).map(([section, badges]) => {
@@ -4973,23 +4954,21 @@ ${content}
4973
4954
  </div>` : content;
4974
4955
  }).join("").trim();
4975
4956
  if (!md?.length) return;
4976
- fs3.mkdirSync(dir, { recursive: true });
4977
- fs3.writeFileSync(`${dir}/${type2}.md`, md);
4957
+ fs2.mkdirSync(dir, { recursive: true });
4958
+ fs2.writeFileSync(`${dir}/${type2}.md`, md);
4978
4959
  }
4979
4960
  );
4980
4961
 
4981
4962
  // src/depbadgerc/output-shieldio-badges-json.ts
4982
4963
  init_esm_shims();
4983
- import fs4 from "fs";
4984
- import path3 from "path";
4985
4964
  var outputShieldioBadgesJson = useCtxCallback((_, hbm, dir = ".depbadge") => {
4986
4965
  Object.entries(hbm).forEach(([section, badgesMap]) => {
4987
- const sectionPath = path3.join(dir, section);
4988
- fs4.mkdirSync(sectionPath, { recursive: true });
4966
+ const sectionPath = path2.join(dir, section);
4967
+ fs2.mkdirSync(sectionPath, { recursive: true });
4989
4968
  Object.entries(badgesMap).forEach(([name, badge]) => {
4990
4969
  const safeName = name.replace(/^@/, "").replace(/\//g, "__");
4991
- const filePath = path3.join(sectionPath, `${safeName}.json`);
4992
- fs4.writeFileSync(filePath, JSON.stringify(badge, null, 2));
4970
+ const filePath = path2.join(sectionPath, `${safeName}.json`);
4971
+ fs2.writeFileSync(filePath, JSON.stringify(badge, null, 2));
4993
4972
  });
4994
4973
  });
4995
4974
  });
@@ -4999,14 +4978,13 @@ init_esm_shims();
4999
4978
 
5000
4979
  // src/depbadgerc/update-integrity.ts
5001
4980
  init_esm_shims();
5002
- import fs5 from "fs";
5003
4981
  function updateIntegrity(integrity, path4 = "depbadgerc.yml") {
5004
4982
  const absFilePath = findFile(path4);
5005
4983
  if (!absFilePath) return;
5006
- const content = fs5.readFileSync(absFilePath, "utf8");
4984
+ const content = fs2.readFileSync(absFilePath, "utf8");
5007
4985
  const newContent = content.match(/^integrity: .*/m) ? content.replace(/^integrity: .*/m, `integrity: ${integrity}`) : `integrity: ${integrity}
5008
4986
  ${content}`;
5009
- fs5.writeFileSync(absFilePath, newContent, "utf8");
4987
+ fs2.writeFileSync(absFilePath, newContent, "utf8");
5010
4988
  }
5011
4989
 
5012
4990
  // src/depbadgerc/process-manifest.ts
@@ -5197,9 +5175,6 @@ var w = function(r2) {
5197
5175
  return r2 instanceof j ? r2 : new j(r2);
5198
5176
  };
5199
5177
 
5200
- // src/depbadgerc/read-depbadgerc-with-defaults.ts
5201
- import fs6 from "fs";
5202
-
5203
5178
  // src/shared/hash-string-to-hsl.ts
5204
5179
  init_esm_shims();
5205
5180
  function hashStringToHsl(str2) {
@@ -5248,7 +5223,7 @@ function withDefaults(rc) {
5248
5223
  function readDepbadgeRC(path4 = "depbadgerc.yml") {
5249
5224
  const filePath = findFile(path4);
5250
5225
  if (!filePath) throw new Error(`${path4} not found`);
5251
- const rc = jsYaml.load(fs6.readFileSync(filePath, "utf8"));
5226
+ const rc = jsYaml.load(fs2.readFileSync(filePath, "utf8"));
5252
5227
  return rc;
5253
5228
  }
5254
5229
  var DEPBADGERC = withDefaults(readDepbadgeRC());
@@ -5309,12 +5284,11 @@ var getVersion = useCtxCallback((store) => store.package.version);
5309
5284
 
5310
5285
  // src/manifest/cargo.toml/manifest.read.ts
5311
5286
  init_esm_shims();
5312
- var import_toml = __toESM(require_toml(), 1);
5313
- import fs7 from "fs";
5287
+ var import_toml = __toESM(require_toml());
5314
5288
  function readManifest(path4 = "Cargo.toml") {
5315
5289
  const filePath = findFile(path4);
5316
5290
  if (!filePath) throw new Error(`${path4} not found`);
5317
- return (0, import_toml.parse)(fs7.readFileSync(filePath, "utf8"));
5291
+ return (0, import_toml.parse)(fs2.readFileSync(filePath, "utf8"));
5318
5292
  }
5319
5293
 
5320
5294
  // src/manifest/cargo.toml/manifest.store.ts
@@ -5342,11 +5316,10 @@ var getVersion2 = useCtxCallback((store) => store.version);
5342
5316
 
5343
5317
  // src/manifest/package-json/manifest.read.ts
5344
5318
  init_esm_shims();
5345
- import fs8 from "fs";
5346
5319
  function readManifest2(path4 = "package.json") {
5347
5320
  const filePath = findFile(path4);
5348
5321
  if (!filePath) throw new Error(`${path4} not found`);
5349
- return JSON.parse(fs8.readFileSync(filePath, "utf8"));
5322
+ return JSON.parse(fs2.readFileSync(filePath, "utf8"));
5350
5323
  }
5351
5324
 
5352
5325
  // src/manifest/package-json/manifest.store.ts
@@ -5386,12 +5359,11 @@ var getVersion3 = useCtxCallback((store) => store.project.version);
5386
5359
 
5387
5360
  // src/manifest/pyproject-toml/manifest.read.ts
5388
5361
  init_esm_shims();
5389
- var import_toml2 = __toESM(require_toml(), 1);
5390
- import fs9 from "fs";
5362
+ var import_toml2 = __toESM(require_toml());
5391
5363
  function readManifest3(path4 = "pyproject.toml") {
5392
5364
  const filePath = findFile(path4);
5393
5365
  if (!filePath) throw new Error(`${path4} not found`);
5394
- return (0, import_toml2.parse)(fs9.readFileSync(filePath, "utf8"));
5366
+ return (0, import_toml2.parse)(fs2.readFileSync(filePath, "utf8"));
5395
5367
  }
5396
5368
 
5397
5369
  // src/manifest/pyproject-toml/manifest.store.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ehildt/depbadge",
3
3
  "description": "A tool that creates shieldio badges",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "dist/index.mjs",
@@ -16,7 +16,7 @@
16
16
  "access": "public"
17
17
  },
18
18
  "bin": {
19
- "depbadge": "./dist/index.js"
19
+ "depbadge": "./dist/index.mjs"
20
20
  },
21
21
  "author": {
22
22
  "email": "eugen.hildt@gmail.com",
@@ -26,9 +26,10 @@
26
26
  "email": "eugen.hildt@gmail.com"
27
27
  },
28
28
  "scripts": {
29
+ "prepare": "husky",
29
30
  "prepublishOnly": "pnpm tsup",
30
31
  "depbadge": "rimraf .depbadge && node dist/index.mjs",
31
- "build": "rimraf dist && pnpm tsup",
32
+ "build": "pnpm tsup",
32
33
  "depcheck": "npx depcheck .",
33
34
  "depcruise": "npx dependency-cruiser -c .depcruise.mjs --ts-config tsconfig.json src",
34
35
  "format": "prettier --write .",
@@ -47,14 +48,13 @@
47
48
  "lint:unused": "npx ts-unused-exports ./tsconfig.exclude.json --maxIssues=0"
48
49
  },
49
50
  "dependencies": {
50
- "@ehildt/depbadge": "^1.0.2",
51
51
  "@iarna/toml": "^2.2.5",
52
52
  "chalk": "^5.6.2",
53
53
  "colord": "^2.9.3",
54
54
  "js-yaml": "^4.1.1"
55
55
  },
56
56
  "devDependencies": {
57
- "@changesets/cli": "^2.29.8",
57
+ "@changesets/cli": "^2.30.0",
58
58
  "@eslint/js": "^10.0.1",
59
59
  "@types/eslint": "^9.6.1",
60
60
  "@types/jest": "^30.0.0",
@@ -74,7 +74,7 @@
74
74
  "jest-extended": "^7.0.0",
75
75
  "jest-junit": "^16.0.0",
76
76
  "jiti": "^2.6.1",
77
- "lint-staged": "^16.3.1",
77
+ "lint-staged": "^16.3.2",
78
78
  "npm-check-updates": "^19.6.3",
79
79
  "rimraf": "^6.1.3",
80
80
  "source-map-support": "^0.5.21",