mmdfmt 0.0.0 → 0.1.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/package.json CHANGED
@@ -1,25 +1,50 @@
1
1
  {
2
2
  "name": "mmdfmt",
3
- "version": "0.0.0",
4
- "description": "A command-line tool that formats Mermaid diagrams and nothing else",
3
+ "version": "0.1.0",
4
+ "description": "Command-line formatter for Mermaid diagrams in .mmd files and in Markdown code blocks, which changes nothing else",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/mmd-toolkit/mmd-toolkit.git",
9
9
  "directory": "packages/mmdfmt"
10
10
  },
11
+ "funding": {
12
+ "type": "github",
13
+ "url": "https://github.com/sponsors/ota-meshi"
14
+ },
11
15
  "type": "module",
16
+ "bin": {
17
+ "mmdfmt": "./lib/cli.mjs"
18
+ },
19
+ "exports": {
20
+ "./package.json": "./package.json"
21
+ },
22
+ "files": [
23
+ "lib"
24
+ ],
12
25
  "engines": {
13
- "node": "^20.19.0 || ^22.13.0 || >=24"
26
+ "node": "^22.13.0 || >=24"
14
27
  },
15
28
  "keywords": [
16
29
  "mermaid",
17
30
  "mmd",
31
+ "markdown",
18
32
  "formatter",
19
33
  "cli"
20
34
  ],
35
+ "dependencies": {
36
+ "@mmd-toolkit/parser": "^0.3.1",
37
+ "gunshi": "^0.37.3",
38
+ "prettier": "^3.9.0",
39
+ "prettier-plugin-mmd": "^0.6.0",
40
+ "tinyglobby": "^0.2.17"
41
+ },
21
42
  "publishConfig": {
22
- "access": "public",
23
- "registry": "https://registry.npmjs.org/"
43
+ "access": "public"
44
+ },
45
+ "scripts": {
46
+ "build": "tsdown",
47
+ "clean": "rimraf lib",
48
+ "test": "vitest run"
24
49
  }
25
- }
50
+ }