@takazudo/mdx-formatter 1.2.0 → 1.3.0-next.2

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/dist/cli.js CHANGED
File without changes
package/format-stdin.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/mdx-formatter",
3
- "version": "1.2.0",
3
+ "version": "1.3.0-next.2",
4
4
  "description": "AST-based markdown and MDX formatter with Japanese text support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,31 +24,6 @@
24
24
  "README.md",
25
25
  "LICENSE"
26
26
  ],
27
- "scripts": {
28
- "build": "tsc",
29
- "test": "vitest run",
30
- "test:watch": "vitest --watch",
31
- "test:coverage": "vitest --coverage",
32
- "format": "npx tsx src/cli.ts --write \"**/*.{md,mdx}\"",
33
- "format:check": "npx tsx src/cli.ts --check \"**/*.{md,mdx}\"",
34
- "prettier": "prettier --check .",
35
- "prettier:fix": "prettier --write .",
36
- "lint": "eslint .",
37
- "lint:fix": "eslint --fix .",
38
- "check": "prettier --check . && eslint .",
39
- "check:fix": "prettier --write . && eslint --fix .",
40
- "test:rust": "vitest run --config vitest.rust.config.ts",
41
- "test:rust-passthrough": "vitest run --config vitest.rust-passthrough.config.ts",
42
- "build:rust": ". \"$HOME/.cargo/env\" && cargo build -p mdx-formatter-napi && cp target/debug/libmdx_formatter_napi.so crates/mdx-formatter-napi/mdx-formatter-napi.node",
43
- "build:rust:release": ". \"$HOME/.cargo/env\" && cargo build -p mdx-formatter-napi --release && cp target/release/libmdx_formatter_napi.so crates/mdx-formatter-napi/mdx-formatter-napi.node",
44
- "benchmark": "npx tsx benchmark/run.ts",
45
- "build:wasm": ". \"$HOME/.cargo/env\" && wasm-pack build crates/mdx-formatter-wasm --target web --out-dir ../../wasm/pkg",
46
- "build:wasm:bundler": ". \"$HOME/.cargo/env\" && wasm-pack build crates/mdx-formatter-wasm --target bundler --out-dir ../../wasm/pkg-bundler",
47
- "build:wasm:doc": ". \"$HOME/.cargo/env\" && wasm-pack build crates/mdx-formatter-wasm --target web --out-dir ../../doc/src/wasm-pkg && mkdir -p doc/public/wasm && cp doc/src/wasm-pkg/mdx_formatter_wasm_bg.wasm doc/public/wasm/ && cp doc/src/wasm-pkg/mdx_formatter_wasm.js doc/public/wasm/",
48
- "b4push": "./scripts/run-b4push.sh",
49
- "doc:start": "pnpm --dir doc start",
50
- "prepublishOnly": "tsc && vitest run"
51
- },
52
27
  "keywords": [
53
28
  "markdown",
54
29
  "mdx",
@@ -89,10 +64,10 @@
89
64
  "vitest": "^4.0.17"
90
65
  },
91
66
  "optionalDependencies": {
92
- "@takazudo/mdx-formatter-darwin-arm64": "1.0.0",
93
- "@takazudo/mdx-formatter-darwin-x64": "1.0.0",
94
- "@takazudo/mdx-formatter-linux-x64-gnu": "1.0.0",
95
- "@takazudo/mdx-formatter-win32-x64-msvc": "1.0.0"
67
+ "@takazudo/mdx-formatter-darwin-arm64": "1.3.0-next.2",
68
+ "@takazudo/mdx-formatter-darwin-x64": "1.3.0-next.2",
69
+ "@takazudo/mdx-formatter-linux-x64-gnu": "1.3.0-next.2",
70
+ "@takazudo/mdx-formatter-win32-x64-msvc": "1.3.0-next.2"
96
71
  },
97
72
  "engines": {
98
73
  "node": ">=18.0.0"
@@ -105,5 +80,30 @@
105
80
  "x86_64-unknown-linux-gnu",
106
81
  "x86_64-pc-windows-msvc"
107
82
  ]
83
+ },
84
+ "scripts": {
85
+ "build": "tsc",
86
+ "test": "vitest run",
87
+ "test:watch": "vitest --watch",
88
+ "test:coverage": "vitest --coverage",
89
+ "format": "npx tsx src/cli.ts --write \"**/*.{md,mdx}\"",
90
+ "format:check": "npx tsx src/cli.ts --check \"**/*.{md,mdx}\"",
91
+ "prettier": "prettier --check .",
92
+ "prettier:fix": "prettier --write .",
93
+ "lint": "eslint .",
94
+ "lint:fix": "eslint --fix .",
95
+ "check": "prettier --check . && eslint .",
96
+ "check:fix": "prettier --write . && eslint --fix .",
97
+ "test:rust": "vitest run --config vitest.rust.config.ts",
98
+ "test:rust-passthrough": "vitest run --config vitest.rust-passthrough.config.ts",
99
+ "build:rust": ". \"$HOME/.cargo/env\" && cargo build -p mdx-formatter-napi && node scripts/copy-napi-binary.mjs",
100
+ "build:rust:release": ". \"$HOME/.cargo/env\" && cargo build -p mdx-formatter-napi --release && node scripts/copy-napi-binary.mjs --release",
101
+ "benchmark": "npx tsx benchmark/run.ts",
102
+ "build:wasm": ". \"$HOME/.cargo/env\" && wasm-pack build crates/mdx-formatter-wasm --target web --out-dir ../../wasm/pkg",
103
+ "build:wasm:bundler": ". \"$HOME/.cargo/env\" && wasm-pack build crates/mdx-formatter-wasm --target bundler --out-dir ../../wasm/pkg-bundler",
104
+ "build:wasm:doc": ". \"$HOME/.cargo/env\" && wasm-pack build crates/mdx-formatter-wasm --target web --out-dir ../../doc/src/wasm-pkg && mkdir -p doc/public/wasm && cp doc/src/wasm-pkg/mdx_formatter_wasm_bg.wasm doc/public/wasm/ && cp doc/src/wasm-pkg/mdx_formatter_wasm.js doc/public/wasm/",
105
+ "b4push": "./scripts/run-b4push.sh",
106
+ "sync:napi-versions": "node scripts/sync-napi-versions.mjs",
107
+ "doc:start": "pnpm --dir doc start"
108
108
  }
109
- }
109
+ }