Skip to content

Commit 746e39e

Browse files
author
Andy
authored
Set "rootDir" for cancellationToken project (#26498)
1 parent 7a65825 commit 746e39e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/configurePrerelease.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ function main(): void {
5555
function updateTsFile(tsFilePath: string, tsFileContents: string, majorMinor: string, patch: string, nightlyPatch: string): string {
5656
const majorMinorRgx = /export const versionMajorMinor = "(\d+\.\d+)"/;
5757
const majorMinorMatch = majorMinorRgx.exec(tsFileContents);
58-
assert(majorMinorMatch !== null, `The file seems to no longer have a string matching '${majorMinorRgx}'.`);
58+
assert(majorMinorMatch !== null, `The file '${tsFilePath}' seems to no longer have a string matching '${majorMinorRgx}'.`);
5959
const parsedMajorMinor = majorMinorMatch![1];
6060
assert(parsedMajorMinor === majorMinor, `versionMajorMinor does not match. ${tsFilePath}: '${parsedMajorMinor}'; package.json: '${majorMinor}'`);
6161

6262
const versionRgx = /export const version = `\$\{versionMajorMinor\}\.(\d)(-dev)?`;/;
6363
const patchMatch = versionRgx.exec(tsFileContents);
64-
assert(patchMatch !== null, "The file seems to no longer have a string matching " + versionRgx.toString());
64+
assert(patchMatch !== null, `The file '${tsFilePath}' seems to no longer have a string matching '${versionRgx.toString()}'.`);
6565
const parsedPatch = patchMatch![1];
6666
if (parsedPatch !== patch) {
6767
throw new Error(`patch does not match. ${tsFilePath}: '${parsedPatch}; package.json: '${patch}'`);

src/cancellationToken/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "../tsconfig-base",
33
"compilerOptions": {
44
"outDir": "../../built/local/",
5+
"rootDir": ".",
56
"composite": false,
67
"declaration": false,
78
"declarationMap": false,

0 commit comments

Comments
 (0)