Skip to content

Commit ede7719

Browse files
Merge branch 'microsoft:main' into main
2 parents b6eafb6 + 1539234 commit ede7719

116 files changed

Lines changed: 5109 additions & 1298 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dprint.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
// Note: if adding new languages, make sure settings.template.json is updated too.
5454
// Also, if updating typescript, update the one in package.json.
5555
"plugins": [
56-
"https://plugins.dprint.dev/typescript-0.93.3.wasm",
56+
"https://plugins.dprint.dev/typescript-0.93.4.wasm",
5757
"https://plugins.dprint.dev/json-0.19.4.wasm",
5858
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm"
5959
]

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
run: npm test -- --no-lint --coverage
9191

9292
- name: Upload coverage artifact
93-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
93+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
9494
with:
9595
name: coverage
9696
path: coverage
@@ -137,7 +137,7 @@ jobs:
137137
node-version: 'lts/*'
138138
- run: npm ci
139139

140-
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
140+
- uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
141141
with:
142142
path: ~/.cache/dprint
143143
key: ${{ runner.os }}-dprint-${{ hashFiles('package-lock.json', '.dprint.jsonc') }}
@@ -334,7 +334,7 @@ jobs:
334334
335335
- name: Upload baseline diff artifact
336336
if: ${{ failure() && steps.check-baselines.conclusion == 'failure' }}
337-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
337+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
338338
with:
339339
name: fix_baselines.patch
340340
path: fix_baselines.patch

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
49+
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
5050
with:
5151
config-file: ./.github/codeql/codeql-configuration.yml
5252
# Override language selection by uncommenting this and choosing your languages
@@ -56,7 +56,7 @@ jobs:
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below).
5858
- name: Autobuild
59-
uses: github/codeql-action/autobuild@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
59+
uses: github/codeql-action/autobuild@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
6060

6161
# ℹ️ Command-line programs to run using the OS shell.
6262
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -70,4 +70,4 @@ jobs:
7070
# make release
7171

7272
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
73+
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10

.github/workflows/release-branch-artifact.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
npm pack ./
4545
mv typescript-*.tgz typescript.tgz
4646
- name: Upload built tarfile
47-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
47+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
4848
with:
4949
name: tgz
5050
path: typescript.tgz

.github/workflows/scorecard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
persist-credentials: false
3535

3636
- name: 'Run analysis'
37-
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
37+
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
3838
with:
3939
results_file: results.sarif
4040
results_format: sarif
@@ -47,14 +47,14 @@ jobs:
4747
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
4848
# format to the repository Actions tab.
4949
- name: 'Upload artifact'
50-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
50+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
5151
with:
5252
name: SARIF file
5353
path: results.sarif
5454
retention-days: 5
5555

5656
# Upload the results to GitHub's code scanning dashboard.
5757
- name: 'Upload to code-scanning'
58-
uses: github/codeql-action/upload-sarif@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
58+
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
5959
with:
6060
sarif_file: results.sarif

Herebyfile.mjs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// @ts-check
22
import { CancelToken } from "@esfx/canceltoken";
33
import assert from "assert";
4-
import chalk from "chalk";
54
import chokidar from "chokidar";
65
import esbuild from "esbuild";
76
import { EventEmitter } from "events";
87
import fs from "fs";
98
import { glob } from "glob";
109
import { task } from "hereby";
1110
import path from "path";
11+
import pc from "picocolors";
1212

1313
import { localizationDirectories } from "./scripts/build/localization.mjs";
1414
import cmdLineOptions from "./scripts/build/options.mjs";
@@ -399,7 +399,7 @@ function entrypointBuildTask(options) {
399399
// allowing them to operate as regular tasks, while creating unresolved promises
400400
// in the background that keep the process running after all tasks have exited.
401401
if (!printedWatchWarning) {
402-
console.error(chalk.yellowBright("Warning: watch mode is incomplete and may not work as expected. Use at your own risk."));
402+
console.error(pc.yellowBright("Warning: watch mode is incomplete and may not work as expected. Use at your own risk."));
403403
printedWatchWarning = true;
404404
}
405405

@@ -707,7 +707,7 @@ export const runTestsAndWatch = task({
707707
dependencies: [watchTests],
708708
run: async () => {
709709
if (!cmdLineOptions.tests && !cmdLineOptions.failed) {
710-
console.log(chalk.redBright(`You must specifiy either --tests/-t or --failed to use 'runtests-watch'.`));
710+
console.log(pc.redBright(`You must specifiy either --tests/-t or --failed to use 'runtests-watch'.`));
711711
return;
712712
}
713713

@@ -719,9 +719,8 @@ export const runTestsAndWatch = task({
719719

720720
const testsChangedDebouncer = new Debouncer(1_000, endRunTests);
721721
const testCaseWatcher = chokidar.watch([
722-
"tests/cases/**/*.*",
723-
"tests/lib/**/*.*",
724-
"tests/projects/**/*.*",
722+
"tests/cases",
723+
"tests/lib",
725724
], {
726725
ignorePermissionErrors: true,
727726
alwaysStat: true,
@@ -746,7 +745,7 @@ export const runTestsAndWatch = task({
746745
running = false;
747746
}
748747
if (watching) {
749-
console.log(chalk.yellowBright(`[watch] test run complete, waiting for changes...`));
748+
console.log(pc.yellowBright(`[watch] test run complete, waiting for changes...`));
750749
await promise;
751750
}
752751
}
@@ -756,7 +755,7 @@ export const runTestsAndWatch = task({
756755
}
757756

758757
/**
759-
* @param {'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir'} eventName
758+
* @param {'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir' | 'all' | 'ready' | 'raw' | 'error'} eventName
760759
* @param {string} path
761760
* @param {fs.Stats | undefined} stats
762761
*/
@@ -783,9 +782,9 @@ export const runTestsAndWatch = task({
783782
*/
784783
function beginRunTests(path) {
785784
if (testsChangedDebouncer.empty) {
786-
console.log(chalk.yellowBright(`[watch] tests changed due to '${path}', restarting...`));
785+
console.log(pc.yellowBright(`[watch] tests changed due to '${path}', restarting...`));
787786
if (running) {
788-
console.log(chalk.yellowBright("[watch] aborting in-progress test run..."));
787+
console.log(pc.yellowBright("[watch] aborting in-progress test run..."));
789788
}
790789
testsChangedCancelSource.cancel();
791790
testsChangedCancelSource = CancelToken.source();
@@ -803,7 +802,7 @@ export const runTestsAndWatch = task({
803802
function endWatchMode() {
804803
if (watching) {
805804
watching = false;
806-
console.log(chalk.yellowBright("[watch] exiting watch mode..."));
805+
console.log(pc.yellowBright("[watch] exiting watch mode..."));
807806
testsChangedCancelSource.cancel();
808807
testCaseWatcher.close();
809808
watchTestsEmitter.off("rebuild", onRebuild);

0 commit comments

Comments
 (0)