mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-10 00:20:22 -06:00
Update deps, a few majors (#60967)
This commit is contained in:
parent
246507f7f9
commit
eb25b58114
@ -53,7 +53,7 @@
|
||||
// Note: if adding new languages, make sure settings.template.json is updated too.
|
||||
// Also, if updating typescript, update the one in package.json.
|
||||
"plugins": [
|
||||
"https://plugins.dprint.dev/typescript-0.93.3.wasm",
|
||||
"https://plugins.dprint.dev/typescript-0.93.4.wasm",
|
||||
"https://plugins.dprint.dev/json-0.19.4.wasm",
|
||||
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm"
|
||||
]
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
// @ts-check
|
||||
import { CancelToken } from "@esfx/canceltoken";
|
||||
import assert from "assert";
|
||||
import chalk from "chalk";
|
||||
import chokidar from "chokidar";
|
||||
import esbuild from "esbuild";
|
||||
import { EventEmitter } from "events";
|
||||
@ -9,6 +8,7 @@ import fs from "fs";
|
||||
import { glob } from "glob";
|
||||
import { task } from "hereby";
|
||||
import path from "path";
|
||||
import pc from "picocolors";
|
||||
|
||||
import { localizationDirectories } from "./scripts/build/localization.mjs";
|
||||
import cmdLineOptions from "./scripts/build/options.mjs";
|
||||
@ -399,7 +399,7 @@ function entrypointBuildTask(options) {
|
||||
// allowing them to operate as regular tasks, while creating unresolved promises
|
||||
// in the background that keep the process running after all tasks have exited.
|
||||
if (!printedWatchWarning) {
|
||||
console.error(chalk.yellowBright("Warning: watch mode is incomplete and may not work as expected. Use at your own risk."));
|
||||
console.error(pc.yellowBright("Warning: watch mode is incomplete and may not work as expected. Use at your own risk."));
|
||||
printedWatchWarning = true;
|
||||
}
|
||||
|
||||
@ -707,7 +707,7 @@ export const runTestsAndWatch = task({
|
||||
dependencies: [watchTests],
|
||||
run: async () => {
|
||||
if (!cmdLineOptions.tests && !cmdLineOptions.failed) {
|
||||
console.log(chalk.redBright(`You must specifiy either --tests/-t or --failed to use 'runtests-watch'.`));
|
||||
console.log(pc.redBright(`You must specifiy either --tests/-t or --failed to use 'runtests-watch'.`));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -719,9 +719,8 @@ export const runTestsAndWatch = task({
|
||||
|
||||
const testsChangedDebouncer = new Debouncer(1_000, endRunTests);
|
||||
const testCaseWatcher = chokidar.watch([
|
||||
"tests/cases/**/*.*",
|
||||
"tests/lib/**/*.*",
|
||||
"tests/projects/**/*.*",
|
||||
"tests/cases",
|
||||
"tests/lib",
|
||||
], {
|
||||
ignorePermissionErrors: true,
|
||||
alwaysStat: true,
|
||||
@ -746,7 +745,7 @@ export const runTestsAndWatch = task({
|
||||
running = false;
|
||||
}
|
||||
if (watching) {
|
||||
console.log(chalk.yellowBright(`[watch] test run complete, waiting for changes...`));
|
||||
console.log(pc.yellowBright(`[watch] test run complete, waiting for changes...`));
|
||||
await promise;
|
||||
}
|
||||
}
|
||||
@ -756,7 +755,7 @@ export const runTestsAndWatch = task({
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir'} eventName
|
||||
* @param {'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir' | 'all' | 'ready' | 'raw' | 'error'} eventName
|
||||
* @param {string} path
|
||||
* @param {fs.Stats | undefined} stats
|
||||
*/
|
||||
@ -783,9 +782,9 @@ export const runTestsAndWatch = task({
|
||||
*/
|
||||
function beginRunTests(path) {
|
||||
if (testsChangedDebouncer.empty) {
|
||||
console.log(chalk.yellowBright(`[watch] tests changed due to '${path}', restarting...`));
|
||||
console.log(pc.yellowBright(`[watch] tests changed due to '${path}', restarting...`));
|
||||
if (running) {
|
||||
console.log(chalk.yellowBright("[watch] aborting in-progress test run..."));
|
||||
console.log(pc.yellowBright("[watch] aborting in-progress test run..."));
|
||||
}
|
||||
testsChangedCancelSource.cancel();
|
||||
testsChangedCancelSource = CancelToken.source();
|
||||
@ -803,7 +802,7 @@ export const runTestsAndWatch = task({
|
||||
function endWatchMode() {
|
||||
if (watching) {
|
||||
watching = false;
|
||||
console.log(chalk.yellowBright("[watch] exiting watch mode..."));
|
||||
console.log(pc.yellowBright("[watch] exiting watch mode..."));
|
||||
testsChangedCancelSource.cancel();
|
||||
testCaseWatcher.close();
|
||||
watchTestsEmitter.off("rebuild", onRebuild);
|
||||
|
||||
1562
package-lock.json
generated
1562
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
38
package.json
38
package.json
@ -40,48 +40,48 @@
|
||||
],
|
||||
"devDependencies": {
|
||||
"@dprint/formatter": "^0.4.1",
|
||||
"@dprint/typescript": "0.93.3",
|
||||
"@dprint/typescript": "0.93.4",
|
||||
"@esfx/canceltoken": "^1.0.0",
|
||||
"@eslint/js": "^9.17.0",
|
||||
"@octokit/rest": "^21.0.2",
|
||||
"@eslint/js": "^9.20.0",
|
||||
"@octokit/rest": "^21.1.1",
|
||||
"@types/chai": "^4.3.20",
|
||||
"@types/diff": "^5.2.3",
|
||||
"@types/diff": "^7.0.1",
|
||||
"@types/minimist": "^1.2.5",
|
||||
"@types/mocha": "^10.0.10",
|
||||
"@types/ms": "^0.7.34",
|
||||
"@types/node": "latest",
|
||||
"@types/source-map-support": "^0.5.10",
|
||||
"@types/which": "^3.0.4",
|
||||
"@typescript-eslint/rule-tester": "^8.18.1",
|
||||
"@typescript-eslint/type-utils": "^8.18.1",
|
||||
"@typescript-eslint/utils": "^8.18.1",
|
||||
"@typescript-eslint/rule-tester": "^8.24.1",
|
||||
"@typescript-eslint/type-utils": "^8.24.1",
|
||||
"@typescript-eslint/utils": "^8.24.1",
|
||||
"azure-devops-node-api": "^14.1.0",
|
||||
"c8": "^10.1.3",
|
||||
"chai": "^4.5.0",
|
||||
"chalk": "^4.1.2",
|
||||
"chokidar": "^3.6.0",
|
||||
"diff": "^5.2.0",
|
||||
"dprint": "^0.47.6",
|
||||
"chokidar": "^4.0.3",
|
||||
"diff": "^7.0.0",
|
||||
"dprint": "^0.49.0",
|
||||
"esbuild": "^0.25.0",
|
||||
"eslint": "^9.17.0",
|
||||
"eslint": "^9.20.1",
|
||||
"eslint-formatter-autolinkable-stylish": "^1.4.0",
|
||||
"eslint-plugin-regexp": "^2.7.0",
|
||||
"fast-xml-parser": "^4.5.1",
|
||||
"fast-xml-parser": "^4.5.2",
|
||||
"glob": "^10.4.5",
|
||||
"globals": "^15.13.0",
|
||||
"globals": "^15.15.0",
|
||||
"hereby": "^1.10.0",
|
||||
"jsonc-parser": "^3.3.1",
|
||||
"knip": "^5.41.0",
|
||||
"knip": "^5.44.4",
|
||||
"minimist": "^1.2.8",
|
||||
"mocha": "^10.8.2",
|
||||
"mocha-fivemat-progress-reporter": "^0.1.0",
|
||||
"monocart-coverage-reports": "^2.11.4",
|
||||
"monocart-coverage-reports": "^2.12.1",
|
||||
"ms": "^2.1.3",
|
||||
"playwright": "^1.49.1",
|
||||
"picocolors": "^1.1.1",
|
||||
"playwright": "^1.50.1",
|
||||
"source-map-support": "^0.5.21",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.7.2",
|
||||
"typescript-eslint": "^8.18.1",
|
||||
"typescript": "^5.7.3",
|
||||
"typescript-eslint": "^8.24.1",
|
||||
"which": "^3.0.1"
|
||||
},
|
||||
"overrides": {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import chalk from "chalk";
|
||||
import { readFileSync } from "fs";
|
||||
import { join } from "path";
|
||||
import pc from "picocolors";
|
||||
import playwright from "playwright";
|
||||
|
||||
// Turning this on will leave the Chromium browser open, giving you the
|
||||
@ -17,7 +17,7 @@ for (const browserType of browsers) {
|
||||
|
||||
/** @type {(err: Error) => void} */
|
||||
const errorCaught = err => {
|
||||
console.error(chalk.red("There was an error running built/typescript.js in " + browserType));
|
||||
console.error(pc.red("There was an error running built/typescript.js in " + browserType));
|
||||
console.log(err.toString());
|
||||
process.exitCode = 1;
|
||||
};
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { CancelError } from "@esfx/canceltoken";
|
||||
import chalk from "chalk";
|
||||
import fs from "fs";
|
||||
import os from "os";
|
||||
import path from "path";
|
||||
import pc from "picocolors";
|
||||
|
||||
import {
|
||||
findUpFile,
|
||||
@ -48,12 +48,12 @@ export async function runConsoleTests(runJs, defaultReporter, runInParallel, opt
|
||||
|
||||
if (coverage && testTimeout) {
|
||||
testTimeout *= 2;
|
||||
console.log(chalk.yellowBright(`[coverage] doubling test timeout to ${testTimeout}ms...`));
|
||||
console.log(pc.yellowBright(`[coverage] doubling test timeout to ${testTimeout}ms...`));
|
||||
}
|
||||
|
||||
if (!cmdLineOptions.dirty) {
|
||||
if (options.watching) {
|
||||
console.log(chalk.yellowBright(`[watch] cleaning test directories...`));
|
||||
console.log(pc.yellowBright(`[watch] cleaning test directories...`));
|
||||
}
|
||||
await cleanTestDirs();
|
||||
await rimraf(coverageDir);
|
||||
@ -81,7 +81,7 @@ export async function runConsoleTests(runJs, defaultReporter, runInParallel, opt
|
||||
}
|
||||
|
||||
if (options.watching) {
|
||||
console.log(chalk.yellowBright(`[watch] running tests...`));
|
||||
console.log(pc.yellowBright(`[watch] running tests...`));
|
||||
}
|
||||
|
||||
if (tests || skipSysTests || runners || light || testTimeout || taskConfigsFolder || keepFailed || shards || shardId) {
|
||||
@ -178,7 +178,7 @@ export async function runConsoleTests(runJs, defaultReporter, runInParallel, opt
|
||||
}
|
||||
|
||||
if (options.watching) {
|
||||
console.error(`${chalk.redBright(error.name)}: ${error.message}`);
|
||||
console.error(`${pc.redBright(error.name)}: ${error.message}`);
|
||||
}
|
||||
else {
|
||||
process.exitCode = typeof errorStatus === "number" ? errorStatus : 2;
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import { CancelError } from "@esfx/canceltoken";
|
||||
import assert from "assert";
|
||||
import chalk from "chalk";
|
||||
import { spawn } from "child_process";
|
||||
import fs from "fs";
|
||||
import JSONC from "jsonc-parser";
|
||||
import pc from "picocolors";
|
||||
import which from "which";
|
||||
|
||||
/** @import { CancelToken } from "@esfx/canceltoken" */
|
||||
@ -26,7 +26,7 @@ export async function exec(cmd, args, options = {}) {
|
||||
return /**@type {Promise<{exitCode?: number}>}*/ (new Promise((resolve, reject) => {
|
||||
const { ignoreExitCode, waitForExit = true, ignoreStdout } = options;
|
||||
|
||||
if (!options.hidePrompt) console.log(`> ${chalk.green(cmd)} ${args.join(" ")}`);
|
||||
if (!options.hidePrompt) console.log(`> ${pc.green(cmd)} ${args.join(" ")}`);
|
||||
const proc = spawn(which.sync(cmd), args, { stdio: waitForExit ? ignoreStdout ? ["inherit", "ignore", "inherit"] : "inherit" : "ignore", detached: !waitForExit });
|
||||
if (waitForExit) {
|
||||
const onCanceled = () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user