Skip to content

Commit

Permalink
[engsys] update dev dependency typescript version to ~5.2.0
Browse files Browse the repository at this point in the history
***NO_CI***

- Upgrade typedoc too as older version only supports TypeScript 5.0
  • Loading branch information
jeremymeng authored and benbp committed Oct 23, 2023
1 parent f0ff24f commit 6d7f635
Show file tree
Hide file tree
Showing 726 changed files with 2,151 additions and 1,946 deletions.
2,379 changes: 1,155 additions & 1,224 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion common/tools/dev-tool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"strip-json-comments": "^5.0.0",
"ts-node": "^10.0.0",
"tslib": "^2.2.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"yaml": "^2.3.0",
"ts-morph": "^20.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
2 changes: 1 addition & 1 deletion common/tools/eslint-plugin-azure-sdk-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"@typescript-eslint/experimental-utils": "~5.57.0",
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
"typescript": "~5.0.0"
"typescript": "~5.2.0"
},
"scripts": {
"audit": "echo skipped",
Expand Down
4 changes: 2 additions & 2 deletions common/tools/eslint-plugin-azure-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"eslint-config-prettier": "^9.0.0",
"glob": "^9.0.0",
"json-schema": "^0.4.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"tslib": "^2.2.0"
},
"devDependencies": {
Expand All @@ -92,7 +92,7 @@
"rimraf": "^3.0.0",
"source-map-support": "^0.5.9",
"mocha-junit-reporter": "^2.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"eslint-plugin-markdown": "~3.0.0",
"ts-node": "^10.0.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const examplePackageGood = `{
"rollup-plugin-terser": "^5.1.1",
"sinon": "^9.0.2",
"ts-node": "^10.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"ws": "^7.1.1",
"typedoc": "0.15.2"
}
Expand Down Expand Up @@ -318,7 +318,7 @@ const examplePackageBad = `{
"rollup-plugin-terser": "^5.1.1",
"sinon": "^9.0.2",
"ts-node": "^10.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"ws": "^7.1.1",
"typedoc": "0.15.2"
}
Expand Down
16 changes: 8 additions & 8 deletions eng/tools/generate-doc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ import { loadTheme } from "./theme/theme.js";
async function runTypeDoc({ outputFolder, cwd }: { outputFolder: string; cwd: string }) {
const oldCwd = process.cwd();
process.chdir(cwd);
const app = new TypeDocApplication();
app.options.addReader(new TSConfigReader());
app.options.addReader(new TypeDocReader());

loadTheme(app);

app.bootstrap({
const app = await TypeDocApplication.bootstrap({
entryPoints: ["src/index.ts"],
excludeInternal: true,
excludePrivate: true,
skipErrorChecking: true,
gaID: "UA-62780441-43",
theme: "azureSdk",
});
}, [
new TSConfigReader(),
new TypeDocReader(),
]);

loadTheme(app);

const project = app.convert();
const project = await app.convert();

if (project) {
await app.generateDocs(project, outputFolder);
Expand Down
4 changes: 2 additions & 2 deletions eng/tools/generate-doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"author": "",
"license": "MIT",
"dependencies": {
"typedoc": "^0.23.15",
"typedoc": "^0.25.2",
"yargs": "^17.5.1"
},
"devDependencies": {
"@types/node": "^16.0.0",
"@types/yargs": "^17.0.12",
"typescript": "~5.0.0"
"typescript": "~5.2.0"
}
}
10 changes: 6 additions & 4 deletions eng/tools/generate-doc/theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {
Options,
DefaultThemeRenderContext,
RendererEvent,
PageEvent,
Reflection,
} from "typedoc";
import { toolbar } from "./toolbar.js";
import { versionPicker, versionPickerScript } from "./versionPicker.js";
Expand Down Expand Up @@ -43,8 +45,8 @@ export function loadTheme(app: TypeDocApplication) {
* in addition to some helper functions.
*/
export class AzureSdkThemeContext extends DefaultThemeRenderContext {
constructor(theme: DefaultTheme, options: Options) {
super(theme, options);
constructor(theme: DefaultTheme, page: PageEvent<Reflection>, options: Options) {
super(theme, page, options);

this.toolbar = (props) => {
return toolbar(this, props);
Expand All @@ -55,8 +57,8 @@ export class AzureSdkThemeContext extends DefaultThemeRenderContext {
export class AzureSdkTheme extends DefaultTheme {
private _contextCache?: AzureSdkThemeContext;

override getRenderContext(): AzureSdkThemeContext {
this._contextCache ||= new AzureSdkThemeContext(this, this.application.options);
override getRenderContext(pageEvent: PageEvent<Reflection>): AzureSdkThemeContext {
this._contextCache ||= new AzureSdkThemeContext(this, pageEvent, this.application.options);
return this._contextCache;
}
}
2 changes: 1 addition & 1 deletion sdk/advisor/arm-advisor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^2.1.2",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
Expand Down
2 changes: 1 addition & 1 deletion sdk/advisor/arm-advisor/samples/v3/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
2 changes: 1 addition & 1 deletion sdk/agrifood/agrifood-farming-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"prettier": "^2.5.1",
"rimraf": "^3.0.0",
"source-map-support": "^0.5.9",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"ts-node": "^10.0.0",
"esm": "^3.2.18"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@azure/identity": "^2.0.1"
},
"devDependencies": {
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
2 changes: 1 addition & 1 deletion sdk/agrifood/arm-agrifood/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^1.0.4",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^3.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
2 changes: 1 addition & 1 deletion sdk/analysisservices/arm-analysisservices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^1.0.4",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^3.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
2 changes: 1 addition & 1 deletion sdk/anomalydetector/ai-anomaly-detector-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"prettier": "^2.5.1",
"rimraf": "^3.0.0",
"source-map-support": "^0.5.9",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"@azure/dev-tool": "^1.0.0",
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
2 changes: 1 addition & 1 deletion sdk/apicenter/arm-apicenter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^2.1.2",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"nyc": "^15.0.0",
"rimraf": "^3.0.0",
"ts-node": "^10.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"util": "^0.12.1",
"dotenv": "^16.0.0",
"@azure/test-utils": "^1.0.0",
Expand All @@ -94,7 +94,7 @@
"prettier": "^2.5.1",
"glob": "^9.0.0",
"tslib": "^2.2.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"chalk": "^4.1.2",
"inquirer": "^8.2.4",
"yargs": "^17.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"prettier": "^2.5.1",
"nyc": "^15.0.0",
"rimraf": "^3.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"util": "^0.12.1",
"dotenv": "^16.0.0",
"@azure/test-utils": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion sdk/apimanagement/arm-apimanagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^2.1.2",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^1.0.4",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^3.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
2 changes: 1 addition & 1 deletion sdk/appconfiguration/app-configuration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"rimraf": "^3.0.0",
"sinon": "^15.0.0",
"ts-node": "^10.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"uglify-js": "^3.4.9",
"uuid": "^8.3.0",
"cross-env": "^7.0.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@azure/identity": "^2.0.1"
},
"devDependencies": {
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
2 changes: 1 addition & 1 deletion sdk/appconfiguration/arm-appconfiguration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^2.1.2",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@types/node": "^16.0.0",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"rimraf": "latest"
}
}
Loading

0 comments on commit 6d7f635

Please sign in to comment.