@ehildt/depbadge 1.0.5 → 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.
Files changed (3) hide show
  1. package/README.md +5 -17
  2. package/dist/index.mjs +27 -56
  3. package/package.json +5 -5
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>
package/dist/index.mjs CHANGED
@@ -1,7 +1,11 @@
1
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';
2
7
 
3
- import { createRequire } from 'module';
4
- const require = createRequire(import.meta.url);
8
+ const require$1 = createRequire(import.meta.url);
5
9
 
6
10
  var __create = Object.create;
7
11
  var __defProp = Object.defineProperty;
@@ -9,10 +13,10 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
13
  var __getOwnPropNames = Object.getOwnPropertyNames;
10
14
  var __getProtoOf = Object.getPrototypeOf;
11
15
  var __hasOwnProp = Object.prototype.hasOwnProperty;
12
- var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
13
- 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]
14
18
  }) : x2)(function(x2) {
15
- if (typeof require !== "undefined") return require.apply(this, arguments);
19
+ if (typeof require$1 !== "undefined") return require$1.apply(this, arguments);
16
20
  throw Error('Dynamic require of "' + x2 + '" is not supported');
17
21
  });
18
22
  var __esm = (fn, res) => function __init() {
@@ -34,23 +38,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
34
38
  // file that has been converted to a CommonJS file using a Babel-
35
39
  // compatible transform (i.e. "__esModule" has not been set), then set
36
40
  // "default" to the CommonJS "module.exports" for node compatibility.
37
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
41
+ __defProp(target, "default", { value: mod, enumerable: true }) ,
38
42
  mod
39
43
  ));
40
-
41
- // 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
42
- import path from "path";
43
- import { fileURLToPath } from "url";
44
44
  var init_esm_shims = __esm({
45
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"() {
46
- "use strict";
47
46
  }
48
47
  });
49
48
 
50
49
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/parser.js
51
50
  var require_parser = __commonJS({
52
51
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/parser.js"(exports2, module2) {
53
- "use strict";
54
52
  init_esm_shims();
55
53
  var ParserEND = 1114112;
56
54
  var ParserError = class _ParserError extends Error {
@@ -176,7 +174,6 @@ var require_parser = __commonJS({
176
174
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime.js
177
175
  var require_create_datetime = __commonJS({
178
176
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime.js"(exports2, module2) {
179
- "use strict";
180
177
  init_esm_shims();
181
178
  module2.exports = (value) => {
182
179
  const date = new Date(value);
@@ -192,7 +189,6 @@ var require_create_datetime = __commonJS({
192
189
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/format-num.js
193
190
  var require_format_num = __commonJS({
194
191
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/format-num.js"(exports2, module2) {
195
- "use strict";
196
192
  init_esm_shims();
197
193
  module2.exports = (d2, num) => {
198
194
  num = String(num);
@@ -205,7 +201,6 @@ var require_format_num = __commonJS({
205
201
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime-float.js
206
202
  var require_create_datetime_float = __commonJS({
207
203
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime-float.js"(exports2, module2) {
208
- "use strict";
209
204
  init_esm_shims();
210
205
  var f2 = require_format_num();
211
206
  var FloatingDateTime = class extends Date {
@@ -233,7 +228,6 @@ var require_create_datetime_float = __commonJS({
233
228
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-date.js
234
229
  var require_create_date = __commonJS({
235
230
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-date.js"(exports2, module2) {
236
- "use strict";
237
231
  init_esm_shims();
238
232
  var f2 = require_format_num();
239
233
  var DateTime = global.Date;
@@ -260,7 +254,6 @@ var require_create_date = __commonJS({
260
254
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-time.js
261
255
  var require_create_time = __commonJS({
262
256
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-time.js"(exports2, module2) {
263
- "use strict";
264
257
  init_esm_shims();
265
258
  var f2 = require_format_num();
266
259
  var Time = class extends Date {
@@ -285,8 +278,7 @@ var require_create_time = __commonJS({
285
278
 
286
279
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/toml-parser.js
287
280
  var require_toml_parser = __commonJS({
288
- "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/toml-parser.js"(exports, module) {
289
- "use strict";
281
+ "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/toml-parser.js"(exports$1, module) {
290
282
  init_esm_shims();
291
283
  module.exports = makeParserClass(require_parser());
292
284
  module.exports.makeParserClass = makeParserClass;
@@ -1600,7 +1592,6 @@ var require_toml_parser = __commonJS({
1600
1592
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-pretty-error.js
1601
1593
  var require_parse_pretty_error = __commonJS({
1602
1594
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-pretty-error.js"(exports2, module2) {
1603
- "use strict";
1604
1595
  init_esm_shims();
1605
1596
  module2.exports = prettyError;
1606
1597
  function prettyError(err, buf) {
@@ -1637,7 +1628,6 @@ var require_parse_pretty_error = __commonJS({
1637
1628
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-string.js
1638
1629
  var require_parse_string = __commonJS({
1639
1630
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-string.js"(exports2, module2) {
1640
- "use strict";
1641
1631
  init_esm_shims();
1642
1632
  module2.exports = parseString;
1643
1633
  var TOMLParser = require_toml_parser();
@@ -1660,7 +1650,6 @@ var require_parse_string = __commonJS({
1660
1650
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-async.js
1661
1651
  var require_parse_async = __commonJS({
1662
1652
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-async.js"(exports2, module2) {
1663
- "use strict";
1664
1653
  init_esm_shims();
1665
1654
  module2.exports = parseAsync;
1666
1655
  var TOMLParser = require_toml_parser();
@@ -1695,7 +1684,6 @@ var require_parse_async = __commonJS({
1695
1684
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-stream.js
1696
1685
  var require_parse_stream = __commonJS({
1697
1686
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-stream.js"(exports2, module2) {
1698
- "use strict";
1699
1687
  init_esm_shims();
1700
1688
  module2.exports = parseStream;
1701
1689
  var stream = __require("stream");
@@ -1704,7 +1692,7 @@ var require_parse_stream = __commonJS({
1704
1692
  if (stm) {
1705
1693
  return parseReadable(stm);
1706
1694
  } else {
1707
- return parseTransform(stm);
1695
+ return parseTransform();
1708
1696
  }
1709
1697
  }
1710
1698
  function parseReadable(stm) {
@@ -1775,7 +1763,6 @@ var require_parse_stream = __commonJS({
1775
1763
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse.js
1776
1764
  var require_parse = __commonJS({
1777
1765
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse.js"(exports2, module2) {
1778
- "use strict";
1779
1766
  init_esm_shims();
1780
1767
  module2.exports = require_parse_string();
1781
1768
  module2.exports.async = require_parse_async();
@@ -1787,7 +1774,6 @@ var require_parse = __commonJS({
1787
1774
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/stringify.js
1788
1775
  var require_stringify = __commonJS({
1789
1776
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/stringify.js"(exports2, module2) {
1790
- "use strict";
1791
1777
  init_esm_shims();
1792
1778
  module2.exports = stringify;
1793
1779
  module2.exports.value = stringifyInline;
@@ -2049,7 +2035,6 @@ var require_stringify = __commonJS({
2049
2035
  // node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/toml.js
2050
2036
  var require_toml = __commonJS({
2051
2037
  "node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/toml.js"(exports2) {
2052
- "use strict";
2053
2038
  init_esm_shims();
2054
2039
  exports2.parse = require_parse();
2055
2040
  exports2.stringify = require_stringify();
@@ -2077,17 +2062,14 @@ function useCtxCallback(callback) {
2077
2062
 
2078
2063
  // src/depbadgerc/apply-markdown-to-target.ts
2079
2064
  init_esm_shims();
2080
- import fs2 from "fs";
2081
2065
 
2082
2066
  // src/shared/find-file.ts
2083
2067
  init_esm_shims();
2084
- import fs from "fs";
2085
- import path2 from "path";
2086
2068
  function findFile(filename, startDir = process.cwd()) {
2087
2069
  let dir = startDir;
2088
2070
  while (true) {
2089
2071
  const candidate = path2.join(dir, filename);
2090
- if (fs.existsSync(candidate)) return candidate;
2072
+ if (fs2.existsSync(candidate)) return candidate;
2091
2073
  const parent = path2.dirname(dir);
2092
2074
  if (parent === dir) break;
2093
2075
  dir = parent;
@@ -2129,7 +2111,6 @@ ${renderedMarkdown}
2129
2111
 
2130
2112
  // src/depbadgerc/compute-state-integrity.ts
2131
2113
  init_esm_shims();
2132
- import crypto from "crypto";
2133
2114
 
2134
2115
  // node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.mjs
2135
2116
  init_esm_shims();
@@ -4958,7 +4939,6 @@ var mapStatusBadgesToMarkdown = useCtxCallback(
4958
4939
 
4959
4940
  // src/depbadgerc/output-markdown-preview.io.ts
4960
4941
  init_esm_shims();
4961
- import fs3 from "fs";
4962
4942
  var outputMarkdownPreview = useCtxCallback(
4963
4943
  (store, type2, badgeMarkdownMap, dir = ".depbadge") => {
4964
4944
  const md = Object.entries(badgeMarkdownMap).map(([section, badges]) => {
@@ -4974,23 +4954,21 @@ ${content}
4974
4954
  </div>` : content;
4975
4955
  }).join("").trim();
4976
4956
  if (!md?.length) return;
4977
- fs3.mkdirSync(dir, { recursive: true });
4978
- fs3.writeFileSync(`${dir}/${type2}.md`, md);
4957
+ fs2.mkdirSync(dir, { recursive: true });
4958
+ fs2.writeFileSync(`${dir}/${type2}.md`, md);
4979
4959
  }
4980
4960
  );
4981
4961
 
4982
4962
  // src/depbadgerc/output-shieldio-badges-json.ts
4983
4963
  init_esm_shims();
4984
- import fs4 from "fs";
4985
- import path3 from "path";
4986
4964
  var outputShieldioBadgesJson = useCtxCallback((_, hbm, dir = ".depbadge") => {
4987
4965
  Object.entries(hbm).forEach(([section, badgesMap]) => {
4988
- const sectionPath = path3.join(dir, section);
4989
- fs4.mkdirSync(sectionPath, { recursive: true });
4966
+ const sectionPath = path2.join(dir, section);
4967
+ fs2.mkdirSync(sectionPath, { recursive: true });
4990
4968
  Object.entries(badgesMap).forEach(([name, badge]) => {
4991
4969
  const safeName = name.replace(/^@/, "").replace(/\//g, "__");
4992
- const filePath = path3.join(sectionPath, `${safeName}.json`);
4993
- 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));
4994
4972
  });
4995
4973
  });
4996
4974
  });
@@ -5000,14 +4978,13 @@ init_esm_shims();
5000
4978
 
5001
4979
  // src/depbadgerc/update-integrity.ts
5002
4980
  init_esm_shims();
5003
- import fs5 from "fs";
5004
4981
  function updateIntegrity(integrity, path4 = "depbadgerc.yml") {
5005
4982
  const absFilePath = findFile(path4);
5006
4983
  if (!absFilePath) return;
5007
- const content = fs5.readFileSync(absFilePath, "utf8");
4984
+ const content = fs2.readFileSync(absFilePath, "utf8");
5008
4985
  const newContent = content.match(/^integrity: .*/m) ? content.replace(/^integrity: .*/m, `integrity: ${integrity}`) : `integrity: ${integrity}
5009
4986
  ${content}`;
5010
- fs5.writeFileSync(absFilePath, newContent, "utf8");
4987
+ fs2.writeFileSync(absFilePath, newContent, "utf8");
5011
4988
  }
5012
4989
 
5013
4990
  // src/depbadgerc/process-manifest.ts
@@ -5198,9 +5175,6 @@ var w = function(r2) {
5198
5175
  return r2 instanceof j ? r2 : new j(r2);
5199
5176
  };
5200
5177
 
5201
- // src/depbadgerc/read-depbadgerc-with-defaults.ts
5202
- import fs6 from "fs";
5203
-
5204
5178
  // src/shared/hash-string-to-hsl.ts
5205
5179
  init_esm_shims();
5206
5180
  function hashStringToHsl(str2) {
@@ -5249,7 +5223,7 @@ function withDefaults(rc) {
5249
5223
  function readDepbadgeRC(path4 = "depbadgerc.yml") {
5250
5224
  const filePath = findFile(path4);
5251
5225
  if (!filePath) throw new Error(`${path4} not found`);
5252
- const rc = jsYaml.load(fs6.readFileSync(filePath, "utf8"));
5226
+ const rc = jsYaml.load(fs2.readFileSync(filePath, "utf8"));
5253
5227
  return rc;
5254
5228
  }
5255
5229
  var DEPBADGERC = withDefaults(readDepbadgeRC());
@@ -5310,12 +5284,11 @@ var getVersion = useCtxCallback((store) => store.package.version);
5310
5284
 
5311
5285
  // src/manifest/cargo.toml/manifest.read.ts
5312
5286
  init_esm_shims();
5313
- var import_toml = __toESM(require_toml(), 1);
5314
- import fs7 from "fs";
5287
+ var import_toml = __toESM(require_toml());
5315
5288
  function readManifest(path4 = "Cargo.toml") {
5316
5289
  const filePath = findFile(path4);
5317
5290
  if (!filePath) throw new Error(`${path4} not found`);
5318
- return (0, import_toml.parse)(fs7.readFileSync(filePath, "utf8"));
5291
+ return (0, import_toml.parse)(fs2.readFileSync(filePath, "utf8"));
5319
5292
  }
5320
5293
 
5321
5294
  // src/manifest/cargo.toml/manifest.store.ts
@@ -5343,11 +5316,10 @@ var getVersion2 = useCtxCallback((store) => store.version);
5343
5316
 
5344
5317
  // src/manifest/package-json/manifest.read.ts
5345
5318
  init_esm_shims();
5346
- import fs8 from "fs";
5347
5319
  function readManifest2(path4 = "package.json") {
5348
5320
  const filePath = findFile(path4);
5349
5321
  if (!filePath) throw new Error(`${path4} not found`);
5350
- return JSON.parse(fs8.readFileSync(filePath, "utf8"));
5322
+ return JSON.parse(fs2.readFileSync(filePath, "utf8"));
5351
5323
  }
5352
5324
 
5353
5325
  // src/manifest/package-json/manifest.store.ts
@@ -5387,12 +5359,11 @@ var getVersion3 = useCtxCallback((store) => store.project.version);
5387
5359
 
5388
5360
  // src/manifest/pyproject-toml/manifest.read.ts
5389
5361
  init_esm_shims();
5390
- var import_toml2 = __toESM(require_toml(), 1);
5391
- import fs9 from "fs";
5362
+ var import_toml2 = __toESM(require_toml());
5392
5363
  function readManifest3(path4 = "pyproject.toml") {
5393
5364
  const filePath = findFile(path4);
5394
5365
  if (!filePath) throw new Error(`${path4} not found`);
5395
- return (0, import_toml2.parse)(fs9.readFileSync(filePath, "utf8"));
5366
+ return (0, import_toml2.parse)(fs2.readFileSync(filePath, "utf8"));
5396
5367
  }
5397
5368
 
5398
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.5",
4
+ "version": "1.0.6",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "dist/index.mjs",
@@ -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.4",
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",