Skip to content

Commit 3255f20

Browse files
committed
Merge branch 'main' into remove-mapset
2 parents 0c93d14 + 0993c01 commit 3255f20

File tree

12 files changed

+607
-598
lines changed

12 files changed

+607
-598
lines changed

.eslintrc.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"es6": true
1111
},
1212
"plugins": [
13-
"@typescript-eslint", "jsdoc", "no-null", "import", "eslint-plugin-local"
13+
"@typescript-eslint", "no-null", "import", "eslint-plugin-local"
1414
],
1515
"rules": {
1616
"@typescript-eslint/adjacent-overload-signatures": "error",
@@ -95,9 +95,6 @@
9595
// eslint-plugin-no-null
9696
"no-null/no-null": "error",
9797

98-
// eslint-plugin-jsdoc
99-
"jsdoc/check-alignment": "error",
100-
10198
// eslint
10299
"constructor-super": "error",
103100
"curly": ["error", "multi-line"],

Herebyfile.mjs

+18-7
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function entrypointBuildTask(options) {
320320
const outDir = path.dirname(options.output);
321321
await fs.promises.mkdir(outDir, { recursive: true });
322322
const moduleSpecifier = path.relative(outDir, options.builtEntrypoint);
323-
await fs.promises.writeFile(options.output, `module.exports = require("./${moduleSpecifier}")`);
323+
await fs.promises.writeFile(options.output, `module.exports = require("./${moduleSpecifier.replace(/[\\/]/g, "/")}")`);
324324
},
325325
});
326326

@@ -354,7 +354,7 @@ function entrypointBuildTask(options) {
354354
}
355355

356356

357-
const { main: tsc, watch: watchTsc } = entrypointBuildTask({
357+
const { main: tsc, build: buildTsc, watch: watchTsc } = entrypointBuildTask({
358358
name: "tsc",
359359
description: "Builds the command-line compiler",
360360
buildDeps: [generateDiagnostics],
@@ -392,7 +392,7 @@ export const dtsServices = task({
392392
});
393393

394394

395-
const { main: tsserver, watch: watchTsserver } = entrypointBuildTask({
395+
const { main: tsserver, build: buildTsserver, watch: watchTsserver } = entrypointBuildTask({
396396
name: "tsserver",
397397
description: "Builds the language server",
398398
buildDeps: [generateDiagnostics],
@@ -410,10 +410,15 @@ const { main: tsserver, watch: watchTsserver } = entrypointBuildTask({
410410
export { tsserver, watchTsserver };
411411

412412

413+
const buildMin = task({
414+
name: "build-min",
415+
dependencies: [buildTsc, buildTsserver],
416+
});
417+
413418
export const min = task({
414419
name: "min",
415420
description: "Builds only tsc and tsserver",
416-
dependencies: [tsc, tsserver],
421+
dependencies: [tsc, tsserver].concat(cmdLineOptions.typecheck ? [buildMin] : []),
417422
});
418423

419424
export const watchMin = task({
@@ -577,10 +582,15 @@ export const watchOtherOutputs = task({
577582
dependencies: [watchCancellationToken, watchTypingsInstaller, watchWatchGuard, generateTypesMap, copyBuiltLocalDiagnosticMessages],
578583
});
579584

585+
const buildLocal = task({
586+
name: "build-local",
587+
dependencies: [buildTsc, buildTsserver, buildServices, buildLssl]
588+
});
589+
580590
export const local = task({
581591
name: "local",
582592
description: "Builds the full compiler and services",
583-
dependencies: [localize, tsc, tsserver, services, lssl, otherOutputs, dts, buildSrc],
593+
dependencies: [localize, tsc, tsserver, services, lssl, otherOutputs, dts].concat(cmdLineOptions.typecheck ? [buildLocal] : []),
584594
});
585595
export default local;
586596

@@ -591,11 +601,12 @@ export const watchLocal = task({
591601
dependencies: [localize, watchTsc, watchTsserver, watchServices, watchLssl, watchOtherOutputs, dts, watchSrc],
592602
});
593603

604+
const runtestsDeps = [tests, generateLibs].concat(cmdLineOptions.typecheck ? [dts, buildSrc] : []);
594605

595606
export const runTests = task({
596607
name: "runtests",
597608
description: "Runs the tests using the built run.js file.",
598-
dependencies: [tests, generateLibs, dts, buildSrc],
609+
dependencies: runtestsDeps,
599610
run: () => runConsoleTests(testRunner, "mocha-fivemat-progress-reporter", /*runInParallel*/ false),
600611
});
601612
// task("runtests").flags = {
@@ -617,7 +628,7 @@ export const runTests = task({
617628
export const runTestsParallel = task({
618629
name: "runtests-parallel",
619630
description: "Runs all the tests in parallel using the built run.js file.",
620-
dependencies: [tests, generateLibs, dts, buildSrc],
631+
dependencies: runtestsDeps,
621632
run: () => runConsoleTests(testRunner, "min", /*runInParallel*/ cmdLineOptions.workers > 1),
622633
});
623634
// task("runtests-parallel").flags = {

0 commit comments

Comments
 (0)