@typespec/compiler
Version:
TypeSpec compiler and standard library
41 lines (40 loc) • 1.16 kB
JSON
{
"name": "{{name}}",
"version": "0.1.0",
"type": "module",
"main": "dist/src/index.js",
"tspMain": "lib/main.tsp",
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"default": "./dist/src/index.js"
},
"./testing": {
"types": "./dist/src/testing/index.d.ts",
"default": "./dist/src/testing/index.js"
}
},
"peerDependencies": {
"@typespec/compiler": "latest"
},
"devDependencies": {
"@types/node": "latest",
"typescript-eslint": "^8.49.0",
"@typespec/compiler": "latest",
"@typespec/library-linter": "latest",
"eslint": "^9.15.0",
"prettier": "^3.3.3",
"typescript": "^5.3.3"
},
"scripts": {
"build": "tsc && npm run build:tsp",
"watch": "tsc --watch",
"build:tsp": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
"test": "node --test 'dist/test/**/*.test.js'",
"lint": "eslint src/ test/ --report-unused-disable-directives --max-warnings=0",
"lint:fix": "eslint . --report-unused-disable-directives --fix",
"format": "prettier . --write",
"format:check": "prettier --check ."
},
"private": true
}