-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathpackage.json
More file actions
142 lines (142 loc) · 8.26 KB
/
package.json
File metadata and controls
142 lines (142 loc) · 8.26 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
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
{
"name": "@azure-tools/typespec-ts",
"version": "0.52.3",
"description": "An experimental TypeSpec emitter for TypeScript RLC",
"main": "dist/src/index.js",
"type": "module",
"exports": {
".": {
"default": "./dist/src/index.js",
"types": "./dist/src/index.d.ts"
},
"./testing": {
"default": "./dist/src/testing/index.js",
"types": "./dist/src/testing/index.d.ts"
}
},
"scripts": {
"test-next": "vitest run --project test-next",
"test-next:coverage": "vitest run --project test-next --coverage",
"clean": "rimraf ./dist ./typespec-output",
"build": "tsc -p .",
"test": "npm run test-next && npm run unit-test && npm run integration-test-ci",
"test:azure": "npm run test-next && npm run copy:typespec && npm run integration-test-ci:azure-rlc && npm run integration-test-ci:azure-modular",
"test:standard": "npm run test-next && npm run copy:typespec && npm run unit-test&& npm run integration-test-ci:rlc && npm run integration-test-ci:modular",
"lint": "eslint src --ext .ts --max-warnings=0",
"lint:fix": "eslint src --fix --ext .ts",
"format": "npm run -s prettier -- --write",
"check-format": "npm run prettier -- --check",
"prettier": "prettier --config ./.prettierrc \"{src,test,static}/**/*.ts\" \"!test/**/generated/**/*.ts\"",
"check:tree": "node --loader ts-node/esm ./test/commands/check-clean-tree.ts",
"integration-test-ci": "npm-run-all copy:typespec integration-test-ci:rlc integration-test-ci:azure-rlc integration-test-ci:modular integration-test-ci:azure-modular",
"integration-test-ci:sequential": "npm-run-all --serial copy:typespec integration-test-ci:modular && npm run integration-test-ci:modular",
"integration-test-ci:rlc": "npm-run-all --silent -p start-test-server:rlc --race generate-and-run:rlc",
"integration-test-ci:azure-rlc": "npm-run-all --silent -p start-test-server:azure-rlc --race generate-and-run:azure-rlc",
"integration-test-ci:modular": "npm-run-all --silent -p start-test-server:modular --race generate-and-run:modular",
"integration-test-ci:azure-modular": "npm-run-all --silent -p start-test-server:azure-modular --race generate-and-run:azure-modular",
"start-test-server": "mkdirp -p coverage && npx tsp-spector serve ./node_modules/@typespec/http-specs/specs --coverageFile ./coverage/spector-coverage-typescript.json",
"start-test-server:rlc": "mkdirp -p coverage && npx tsp-spector serve ./node_modules/@typespec/http-specs/specs --coverageFile ./coverage/spector-coverage-typescript-rlc-standard.json",
"start-test-server:azure-rlc": "mkdirp -p coverage && npx tsp-spector serve ./node_modules/@azure-tools/azure-http-specs/specs ./node_modules/@typespec/http-specs/specs --coverageFile ./coverage/spector-coverage-typescript-rlc-azure.json",
"start-test-server:modular": "mkdirp -p coverage && npx tsp-spector serve ./node_modules/@typespec/http-specs/specs --port 3002 --coverageFile ./coverage/spector-coverage-typescript-modular-standard.json",
"start-test-server:azure-modular": "mkdirp -p coverage && npx tsp-spector serve ./node_modules/@azure-tools/azure-http-specs/specs ./node_modules/@typespec/http-specs/specs --port 3002 --coverageFile ./coverage/spector-coverage-typescript-modular-azure.json",
"copy:typespec": "rm -rf temp && mkdirp -p temp/specs && mkdirp -p temp/assets && cp -r ./node_modules/@typespec/http-specs/specs/* ./temp/specs && cp -r ./node_modules/@azure-tools/azure-http-specs/specs/* ./temp/specs && cp -r ./test/integration/typespec/* ./temp/specs && cp -r ./node_modules/@typespec/http-specs/assets/* ./temp/assets",
"generate-and-run:rlc": "npm run generate-tsp-only:rlc && npm run integration-test:alone:rlc && npm run stop-test-server -- -p 3000",
"generate-and-run:azure-rlc": "npm run generate-tsp-only:azure-rlc && npm run integration-test:alone:azure-rlc && npm run stop-test-server -- -p 3000",
"generate-and-run:modular": "npm run generate-tsp-only:modular && npm run integration-test:alone:modular && npm run stop-test-server -- -p 3002",
"generate-and-run:azure-modular": "npm run generate-tsp-only:azure-modular && npm run integration-test:alone:azure-modular && npm run stop-test-server -- -p 3002",
"generate-tsp-only": "npm run generate-tsp-only:azure-rlc && npm run generate-tsp-only:rlc &&npm run generate-tsp-only:azure-modular && npm run generate-tsp-only:modular",
"generate-tsp-only:rlc": "npx tsx ./test/commands/gen-cadl-ranch.js --tag=rlc",
"generate-tsp-only:azure-rlc": "npx tsx ./test/commands/gen-cadl-ranch.js --tag=azure-rlc",
"generate-tsp-only:modular": "npx tsx ./test/commands/gen-cadl-ranch.js --tag=modular",
"generate-tsp-only:azure-modular": "npx tsx ./test/commands/gen-cadl-ranch.js --tag=azure-modular",
"regen-test-baselines": "npm run generate-tsp-only",
"integration-test:alone": "npm run integration-test:alone:rlc && npm run integration-test:alone:azure-rlc && npm run integration-test:alone:modular && npm run integration-test:alone:azure-modular",
"integration-test:alone:rlc": "vitest run --project integration-rlc",
"integration-test:alone:azure-rlc": "vitest run --project integration-azure-rlc",
"integration-test:alone:modular": "vitest run --project integration-modular",
"integration-test:alone:azure-modular": "vitest run --project integration-azure-modular",
"stop-test-server": "npx tsp-spector server stop",
"unit-test": "npm-run-all --parallel unit-test:rlc unit-test:modular",
"unit-test:rlc": "vitest run --project unit-rlc",
"unit-test:modular": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vitest run --project unit-modular",
"regen-docs": "npm run build && tspd doc . --enable-experimental --output-dir ./website/src/content/docs/docs/emitters/clients/typespec-ts/reference --skip-js"
},
"author": "Jose Heredia <joheredi@microsoft.com>",
"license": "MIT",
"devDependencies": {
"@azure-rest/core-client": "^2.3.1",
"@typespec/http-specs": "0.1.0-alpha.37-dev.3",
"@typespec/spector": "0.1.0-dev.4",
"@typespec/spec-api": "0.1.0-dev.3",
"@typespec/tspd": "0.74.1",
"@azure-tools/azure-http-specs": "0.1.0-alpha.40-dev.6",
"@azure-tools/typespec-autorest": "^0.67.0",
"@azure-tools/typespec-azure-core": "^0.67.1",
"@azure-tools/typespec-azure-resource-manager": "^0.67.1",
"@azure-tools/typespec-client-generator-core": "^0.67.3",
"@azure/abort-controller": "^2.1.2",
"@azure/core-auth": "^1.6.0",
"@azure/core-lro": "^3.1.0",
"@azure/core-paging": "^1.5.0",
"@azure/core-rest-pipeline": "^1.14.0",
"@azure/core-util": "^1.4.0",
"@azure/logger": "^1.0.4",
"@types/chai": "^4.3.1",
"@types/fs-extra": "^9.0.13",
"@types/lodash": "^4.17.4",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"@typespec/compiler": "^1.11.0",
"@typespec/http": "^1.11.0",
"@typespec/openapi": "^1.11.0",
"@typespec/rest": "^0.81.0",
"@typespec/ts-http-runtime": "^0.1.0",
"@typespec/versioning": "^0.81.0",
"chai": "^4.3.6",
"chalk": "^4.0.0",
"cross-env": "^7.0.3",
"eslint-plugin-require-extensions": "0.1.3",
"mkdirp": "^3.0.1",
"npm-run-all": "~4.1.5",
"prettier": "^3.3.3",
"ts-node": "~10.9.1",
"vitest": "^4.1.0",
"vite": "^6.0.0",
"@vitest/coverage-v8": "^4.1.0",
"@vitest/coverage-istanbul": "^4.1.0",
"@microsoft/api-extractor": "^7.47.5",
"tsx": "^4.16.5",
"@types/js-yaml": "^4.0.9",
"js-yaml": "^4.1.0"
},
"peerDependencies": {
"@azure-tools/typespec-azure-core": "^0.67.1",
"@azure-tools/typespec-client-generator-core": "^0.67.3",
"@typespec/compiler": "^1.11.0",
"@typespec/http": "^1.11.0",
"@typespec/rest": "^0.81.0",
"@typespec/versioning": "^0.81.0",
"@typespec/xml": "^0.81.0"
},
"dependencies": {
"@azure-tools/rlc-common": "workspace:^0.52.3",
"fast-xml-parser": "^4.5.0",
"fs-extra": "^11.1.0",
"lodash": "^4.17.21",
"prettier": "^3.3.3",
"ts-morph": "^23.0.0",
"tslib": "^2.3.1"
},
"files": [
"src",
"dist/**",
"README.md",
"CHANGELOG.md",
"LICENSE",
"static/**"
],
"bugs": {
"url": "https://github.com/Azure/autorest.typescript/issues"
},
"homepage": "https://github.com/Azure/autorest.typescript/tree/main/packages/typespec-ts/"
}