Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
95 lines (95 loc) · 2.72 KB
/
Copy pathpackage.json
File metadata and controls
95 lines (95 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"name": "treefmt-vscode",
"displayName": "treefmt-vscode",
"description": "treefmt streamlines the process of applying formatters to your project, making it a breeze with just one command line.",
"version": "2.4.1",
"publisher": "ibecker",
"icon": "icon.png",
"engines": {
"vscode": "^1.90.0"
},
"repository": {
"type": "git",
"url": "https://github.com/isbecker/treefmt-vscode"
},
"categories": [
"Other",
"Formatters"
],
"activationEvents": [
"workspaceContains:treefmt.toml",
"workspaceContains:.treefmt.toml"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "extension.runTreefmt",
"title": "Run Treefmt"
},
{
"command": "extension.initTreefmt",
"title": "Initialize treefmt.toml configuration"
},
{
"command": "extension.runTreefmtWithStdin",
"title": "Run Treefmt with Stdin"
}
],
"configuration": [
{
"title": "treefmt",
"properties": {
"treefmt.command": {
"type": "string",
"default": null,
"description": "Path to the treefmt executable, e.g. /usr/local/bin/treefmt. If not set, the extension will use the bundled treefmt binary."
},
"treefmt.config": {
"type": "string",
"default": null,
"description": "Path to the treefmt configuration file, e.g. treefmt.toml. If not set, the extension will look for a treefmt.toml file in the workspace root."
},
"treefmt.useStdin": {
"type": "boolean",
"default": true,
"description": "Toggle between using stdin or the legacy onsave version for formatting."
},
"treefmt.debug": {
"type": "boolean",
"default": false,
"description": "Enable debug logging for the extension."
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "25.x",
"@types/vscode": "^1.90.0",
"@typescript-eslint/eslint-plugin": "^8.50.1",
"@typescript-eslint/parser": "^8.50.1",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"esbuild": "^0.27.2",
"eslint": "^9.39.2",
"npm-run-all": "^4.1.5",
"typescript": "^5.9.3"
}
}