Skip to content

Commit e0ddf47

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix/include-export-in-convert-to-defaut
2 parents 808ccb7 + 1cd8e20 commit e0ddf47

File tree

139 files changed

+4262
-21620
lines changed

Some content is hidden

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

139 files changed

+4262
-21620
lines changed

.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/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@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
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@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
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@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ jobs:
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@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
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)