@tombi-toml/tombi 1.5.8 → 1.6.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/README.md +56 -0
- package/bin/tombi +5 -1
- package/package.json +12 -12
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<div align="center" style="display: flex; flex-direction: column; gap: 0;">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/tombi-toml/tombi/refs/heads/main/docs/public/tombi.svg" alt="Logo" style="display: block; margin: 0;">
|
|
3
|
+
<img src="https://raw.githubusercontent.com/tombi-toml/tombi/refs/heads/main/docs/public/demo.gif" style="display: block; margin: 0;" />
|
|
4
|
+
</div>
|
|
5
|
+
|
|
6
|
+
<div align="center">
|
|
7
|
+
|
|
8
|
+
[](https://marketplace.visualstudio.com/items?itemName=tombi-toml.tombi)
|
|
9
|
+
[](https://open-vsx.org/extension/tombi-toml/tombi)
|
|
10
|
+
[](https://plugins.jetbrains.com/plugin/28017-tombi)
|
|
11
|
+
[](https://zed.dev/extensions/tombi)
|
|
12
|
+
[](https://formulae.brew.sh/formula/tombi)
|
|
13
|
+
[](https://pypi.python.org/pypi/tombi)
|
|
14
|
+
[](https://www.npmjs.com/package/tombi)
|
|
15
|
+
[](https://github.com/tombi-toml/tombi/actions)
|
|
16
|
+
[](https://github.com/tombi-toml/tombi/blob/main/LICENSE)
|
|
17
|
+
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<br>
|
|
21
|
+
|
|
22
|
+
<div align="center">
|
|
23
|
+
<h2 align="center" style="font-size: 2.0em; margin-bottom: 30px;">
|
|
24
|
+
<span aria-hidden="true">🦅 </span>
|
|
25
|
+
<strong>TOML Toolkit</strong>
|
|
26
|
+
<span aria-hidden="true"> 🦅</span>
|
|
27
|
+
</h2>
|
|
28
|
+
Tombi(鳶 <a href="https://ipa-reader.com/?text=toɴbi" style="font-size: 1.2em; color: #007acc; text-decoration: none;">/toɴbi/</a>) provides a Formatter, Linter, and Language Server
|
|
29
|
+
<br><br>
|
|
30
|
+
<span aria-hidden="true">📚</span>
|
|
31
|
+
<a href="https://tombi-toml.github.io/tombi" style="font-size: 1.2em; color: #007acc; text-decoration: none;">Documentation</a>
|
|
32
|
+
<span aria-hidden="true">📚</span>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<br>
|
|
36
|
+
|
|
37
|
+
<div align="center">
|
|
38
|
+
<h2 align="center" style="font-size: 2.0em; margin-bottom: 30px;">
|
|
39
|
+
<strong>Quick Start</strong>
|
|
40
|
+
</h2>
|
|
41
|
+
|
|
42
|
+
To quickly try out Tombi's formatter, you can run:
|
|
43
|
+
|
|
44
|
+
<code style="display: block; white-space: pre-wrap;"> uvx tombi format </code>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div align="center">
|
|
48
|
+
<h2 align="center" style="font-size: 2.0em; margin-bottom: 30px;">
|
|
49
|
+
<strong>Support us</strong>
|
|
50
|
+
</h2>
|
|
51
|
+
If you like this project and would like to support us
|
|
52
|
+
<br><br>
|
|
53
|
+
<a href="https://github.com/sponsors/tombi-toml">
|
|
54
|
+
<img src="https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=ff69b4" alt="GitHub Sponsor">
|
|
55
|
+
</a>
|
|
56
|
+
</div>
|
package/bin/tombi
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const { platform, arch, env, version, release } = process;
|
|
3
3
|
const { execSync } = require("node:child_process");
|
|
4
|
+
// Published as `@tombi-toml/cli`, `tombi`, and the former `@tombi-toml/tombi`
|
|
5
|
+
// (the release workflow only rewrites `name`), so read it rather than
|
|
6
|
+
// hard-coding one.
|
|
7
|
+
const { name: packageName } = require("../package.json");
|
|
4
8
|
|
|
5
9
|
function isMusl() {
|
|
6
10
|
let stderr;
|
|
@@ -56,7 +60,7 @@ if (binPath) {
|
|
|
56
60
|
console.error(
|
|
57
61
|
`The Tombi CLI binary "${binPath}" could not be found. ` +
|
|
58
62
|
"The platform-specific optional package may not be installed. " +
|
|
59
|
-
|
|
63
|
+
`Please reinstall ${packageName} with optional dependencies enabled.`,
|
|
60
64
|
);
|
|
61
65
|
process.exitCode = 1;
|
|
62
66
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tombi-toml/tombi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "🦅 TOML Toolkit 🦅",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tombi": "bin/tombi"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
25
|
"url": "git+https://github.com/tombi-toml/tombi.git",
|
|
26
|
-
"directory": "typescript/@tombi-toml/
|
|
26
|
+
"directory": "typescript/@tombi-toml/cli"
|
|
27
27
|
},
|
|
28
28
|
"bugs": {
|
|
29
29
|
"url": "https://github.com/tombi-toml/tombi/issues"
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"provenance": true
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"@tombi-toml/cli-win32-x64": "1.
|
|
40
|
-
"@tombi-toml/cli-win32-arm64": "1.
|
|
41
|
-
"@tombi-toml/cli-darwin-x64": "1.
|
|
42
|
-
"@tombi-toml/cli-darwin-arm64": "1.
|
|
43
|
-
"@tombi-toml/cli-linux-x64": "1.
|
|
44
|
-
"@tombi-toml/cli-linux-arm64": "1.
|
|
45
|
-
"@tombi-toml/cli-linux-x64-musl": "1.
|
|
46
|
-
"@tombi-toml/cli-linux-arm64-musl": "1.
|
|
47
|
-
"@tombi-toml/cli-sunos-x64": "1.
|
|
39
|
+
"@tombi-toml/cli-win32-x64": "1.6.0",
|
|
40
|
+
"@tombi-toml/cli-win32-arm64": "1.6.0",
|
|
41
|
+
"@tombi-toml/cli-darwin-x64": "1.6.0",
|
|
42
|
+
"@tombi-toml/cli-darwin-arm64": "1.6.0",
|
|
43
|
+
"@tombi-toml/cli-linux-x64": "1.6.0",
|
|
44
|
+
"@tombi-toml/cli-linux-arm64": "1.6.0",
|
|
45
|
+
"@tombi-toml/cli-linux-x64-musl": "1.6.0",
|
|
46
|
+
"@tombi-toml/cli-linux-arm64-musl": "1.6.0",
|
|
47
|
+
"@tombi-toml/cli-sunos-x64": "1.6.0"
|
|
48
48
|
}
|
|
49
|
-
}
|
|
49
|
+
}
|