Files
syntax/package.json
zeekayandHanzo Dev 32b988ca80 Typecheck on the native compiler, keep 6 for the tools
typescript 7.0.2 is the native compiler and exports no JavaScript API, so
tsup's dts build cannot read it. It comes in aliased as tsgo and does the
typechecking; typescript stays on the 6 line for the tools. 0 diagnostics
before and after.

tsup injects its own baseUrl into the compilerOptions it hands the dts
build, which typescript 6 errors on (TS5101), so the dts build needs
ignoreDeprecations: "6.0" in the tsconfig. Without it `build` fails.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-17 01:12:09 -07:00

86 lines
2.0 KiB
JSON

{
"name": "zap-syntax",
"displayName": "ZAP Protocol Syntax",
"description": "Syntax highlighting for ZAP (Zero-copy Application Protocol) schema files",
"version": "1.0.0",
"publisher": "zap-protocol",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/zap-proto/syntax.git"
},
"homepage": "https://github.com/zap-proto/syntax#readme",
"bugs": {
"url": "https://github.com/zap-proto/syntax/issues"
},
"keywords": [
"zap",
"zap-protocol",
"serialization",
"binary",
"schema",
"syntax-highlighting",
"textmate",
"shiki"
],
"engines": {
"vscode": "^1.60.0"
},
"categories": [
"Programming Languages"
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./grammar": {
"import": "./syntaxes/zap.tmLanguage.json",
"require": "./syntaxes/zap.tmLanguage.json"
},
"./language-configuration": {
"import": "./language-configuration.json",
"require": "./language-configuration.json"
}
},
"files": [
"dist",
"syntaxes",
"language-configuration.json"
],
"contributes": {
"languages": [
{
"id": "zap",
"aliases": ["ZAP", "ZAP Protocol", "zap"],
"extensions": [".zap", ".zaps"],
"configuration": "./language-configuration.json",
"icon": {
"light": "./icons/zap-light.svg",
"dark": "./icons/zap-dark.svg"
}
}
],
"grammars": [
{
"language": "zap",
"scopeName": "source.zap",
"path": "./syntaxes/zap.tmLanguage.json"
}
]
},
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"typecheck": "node_modules/tsgo/bin/tsc --noEmit --incremental false",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"tsgo": "npm:[email protected]",
"tsup": "^8.0.0",
"typescript": "6.0.3"
}
}