forked from microsoft/typespec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
146 lines (146 loc) · 4.16 KB
/
package.json
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "typespec-vscode",
"version": "0.54.0",
"author": "Microsoft Corporation",
"description": "TypeSpec language support for VS Code",
"homepage": "https://typespec.io",
"readme": "https://github.com/microsoft/typespec/blob/main/README.md",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/typespec.git"
},
"bugs": {
"url": "https://github.com/microsoft/typespec/issues"
},
"keywords": [
"typespec"
],
"preview": true,
"publisher": "typespec",
"displayName": "TypeSpec for VS Code",
"categories": [
"Programming Languages"
],
"type": "module",
"main": "./dist/src/extension.cjs",
"engines": {
"vscode": "^1.86.0"
},
"activationEvents": [
"onLanguage:typespec",
"onCommand:typespec.restartServer"
],
"files": [
"typespec-vscode-*.vsix",
"ThirdPartyNotices.txt"
],
"icon": "./icons/logo.png",
"contributes": {
"languages": [
{
"id": "typespec",
"aliases": [
"TypeSpec",
"TYPESPEC"
],
"extensions": [
".tsp"
],
"icon": {
"light": "./icons/tsp-file.light.svg",
"dark": "./icons/tsp-file.dark.svg"
},
"configuration": "./dist/language-configuration.json"
},
{
"id": "markdown-typespec"
}
],
"configuration": [
{
"title": "TypeSpec Language Server Path",
"properties": {
"typespec.tsp-server.path": {
"type": "string",
"default": "",
"description": "Path to `tsp-server` command that runs the TypeSpec language server.\n\nIf not specified, then `tsp-server` found on PATH is used.\n\nExample (User): /usr/local/bin/tsp-server\nExample (Workspace): ${workspaceFolder}/node_modules/@typespec/compiler",
"scope": "machine-overridable"
}
}
}
],
"grammars": [
{
"language": "typespec",
"scopeName": "source.tsp",
"path": "./dist/typespec.tmLanguage"
},
{
"language": "markdown-typespec",
"scopeName": "markdown.tsp.codeblock",
"path": "./markdown-typespec.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.tsp": "typespec"
}
}
],
"commands": [
{
"command": "typespec.restartServer",
"title": "Restart TypeSpec server",
"category": "TypeSpec"
}
],
"semanticTokenScopes": [
{
"scopes": {
"keyword": [
"keyword.other.tsp"
],
"macro": [
"entity.name.tag.tsp"
],
"docCommentTag": [
"keyword.other.tsp"
]
}
}
]
},
"scripts": {
"clean": "rimraf ./dist ./temp",
"build": "npm run compile && npm run copy-tmlanguage && npm run generate-language-configuration && npm run generate-third-party-notices && npm run package-vsix",
"compile": "rollup --config rollup.config.ts --configPlugin typescript --failAfterWarnings 2>&1",
"watch": "rollup --config rollup.config.ts --configPlugin typescript --watch",
"dogfood": "node scripts/dogfood.js",
"copy-tmlanguage": "node scripts/copy-tmlanguage.js",
"generate-language-configuration": "node scripts/generate-language-configuration.js",
"generate-third-party-notices": "typespec-build-tool generate-third-party-notices",
"package-vsix": "vsce package",
"deploy": "vsce publish"
},
"devDependencies": {
"@rollup/plugin-commonjs": "~25.0.7",
"@rollup/plugin-node-resolve": "~15.2.3",
"@rollup/plugin-typescript": "~11.1.6",
"@types/node": "~18.11.19",
"@types/vscode": "~1.86.0",
"@typespec/compiler": "workspace:~",
"@typespec/eslint-config-typespec": "workspace:~",
"@typespec/internal-build-utils": "workspace:~",
"@vitest/coverage-v8": "^1.2.2",
"@vitest/ui": "^1.2.2",
"@vscode/vsce": "~2.23.0",
"c8": "^9.1.0",
"eslint": "^8.56.0",
"rimraf": "~5.0.5",
"rollup": "~4.9.6",
"typescript": "~5.3.3",
"vitest": "^1.2.2",
"vscode-languageclient": "~9.0.1"
}
}